Changeset View
Changeset View
Standalone View
Standalone View
doc/kdevelop/index.docbook
Show First 20 Lines • Show All 1211 Lines • ▼ Show 20 Line(s) | 1211 | <row> | |||
---|---|---|---|---|---|
1212 | <entry><keycap>F8</keycap></entry> | 1212 | <entry><keycap>F8</keycap></entry> | ||
1213 | <entry>Build (call make)</entry> | 1213 | <entry>Build (call make)</entry> | ||
1214 | </row> | 1214 | </row> | ||
1215 | <row> | 1215 | <row> | ||
1216 | <entry><keycombo>&Shift;<keycap>F9</keycap></keycombo></entry> | 1216 | <entry><keycombo>&Shift;<keycap>F9</keycap></keycombo></entry> | ||
1217 | <entry>Run</entry> | 1217 | <entry>Run</entry> | ||
1218 | </row> | 1218 | </row> | ||
1219 | <row> | 1219 | <row> | ||
1220 | <entry><keycap>F9</keycap></entry> | 1220 | <entry><keycombo>&Alt;<keycap>F9</keycap></keycombo></entry> | ||
1221 | <entry>Run program in the debugger; you may want to set breakpoints beforehand, for example by right-clicking with the mouse on a particular line in the source code</entry> | 1221 | <entry>Run program in the debugger; you may want to set breakpoints beforehand, for example by right-clicking with the mouse on a particular line in the source code</entry> | ||
1222 | </row> | 1222 | </row> | ||
1223 | </tbody> | 1223 | </tbody> | ||
1224 | </tgroup> | 1224 | </tgroup> | ||
1225 | </informaltable> | 1225 | </informaltable> | ||
1226 | </para> | 1226 | </para> | ||
1227 | </sect1> | 1227 | </sect1> | ||
1228 | </chapter> | 1228 | </chapter> | ||
1229 | <chapter id="debugging-programs-in-kdevelop"><title>Debugging programs in &kdevelop;</title> | 1229 | <chapter id="debugging-programs-in-kdevelop"><title>Debugging programs in &kdevelop;</title> | ||
1230 | <sect1 id="running-a-program-in-the-debugger"><title>Running a program in the debugger</title> | 1230 | <sect1 id="running-a-program-in-the-debugger"><title>Running a program in the debugger</title> | ||
1231 | <para>Once you have a launch configured (see <link linkend="running-programs-in-kdevelop">Running programs</link>), you can also run it in a debugger: Select the menu item <menuchoice><guimenu>Run</guimenu><guimenuitem>Debug Launch</guimenuitem></menuchoice>, or hit <keycap>F9</keycap>. If you are familiar with <application>gdb</application>, the effect is the same as starting <application>gdb</application> with the executable specified in the launch configuration and then saying <varname>Run</varname>. This means that if the program calls <varname>abort()</varname> somewhere (⪚ 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 | 1231 | <para>Once you have a launch configured (see <link linkend="running-programs-in-kdevelop">Running programs</link>), you can also run it in a debugger: Select the menu item <menuchoice><guimenu>Run</guimenu><guimenuitem>Debug Launch</guimenuitem></menuchoice>, or hit <keycombo>&Alt;<keycap>F9</keycap></keycombo>. If you are familiar with <application>gdb</application>, the effect is the same as starting <application>gdb</application> with the executable specified in the launch configuration and then saying <varname>Run</varname>. This means that if the program calls <varname>abort()</varname> somewhere (⪚ 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 | ||
1232 | can do that by moving the cursor on such a line and selecting the menu item <menuchoice><guimenu>Run</guimenu><guimenuitem>Toggle breakpoint</guimenuitem></menuchoice>, or right-clicking on a line and selecting <guilabel>Toggle Breakpoint</guilabel> from the context menu.</para> | 1232 | can do that by moving the cursor on such a line and selecting the menu item <menuchoice><guimenu>Run</guimenu><guimenuitem>Toggle breakpoint</guimenuitem></menuchoice>, or right-clicking on a line and selecting <guilabel>Toggle Breakpoint</guilabel> from the context menu.</para> | ||
1233 | <para> | 1233 | <para> | ||
1234 | <screenshot> | 1234 | <screenshot> | ||
1235 | <screeninfo></screeninfo> | 1235 | <screeninfo></screeninfo> | ||
1236 | <mediaobject> | 1236 | <mediaobject> | ||
1237 | <imageobject> | 1237 | <imageobject> | ||
1238 | <imagedata fileref="kdevelop-4.png" format="PNG"/> | 1238 | <imagedata fileref="kdevelop-4.png" format="PNG"/> | ||
1239 | </imageobject> | 1239 | </imageobject> | ||
▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines |