![]() ![]() Note that in case the process you have attached to does not provide debug information, breakpoints will be unavailable and stepping will be performed in the disassembly view. ![]() Proceed with debugging the same way as you usually do it in CLion ( set breakpoints, step through, pause and resume the process, evaluate expressions, and so on): As a workaround, try running CLion under the same privileged user. If there are several debuggers that can be used for the selected process, you can choose among them in the popup menu:īy default, you will not be able to attach the debugger to a process launched with sudo privileges. If necessary, narrow down the list of processes by typing the first letters of its name or PID. The list of running local processes is shown. Press Ctrl+Alt+F5 or choose Run | Attach to Process from the main menu. To apply the changes immediately, enter the above command echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope.Īlternatively, run sudo service procps restart or restart your system. ![]() To disable this restriction permanently, open the /etc/sysctl.d/nf file for editing and change the line _scope = 1 to _scope = 0. Echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |