Translations:KDevelop5/Manual/Debugging programs/3/en
Once you have a launch configured (see Running programs), you can also run it in a debugger: Select the menu item , or hit F9. If you are familiar with gdb, the effect is the same as starting gdb with the executable specified in the launch configuration and then saying Run
. This means that if the program calls abort()
somewhere (e.g. when you run onto a failing assertion) or if there is a segmentation fault, then the debugger will stop. On the other hand, if the program runs to the end (with or without doing the right thing) then the debugger will not stop by itself before the program is finished. In the latter case, you will want to set a breakpoint on all those lines of your code base where you want the debugger to stop before you run the debug launch. You can do that by moving the cursor on such a line and selecting the menu item , or right-clicking on a line and selecting from the context menu.