File: debugging.rst

package info (click to toggle)
gnome-builder 49.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,412 kB
  • sloc: ansic: 270,495; xml: 3,485; python: 1,863; javascript: 82; makefile: 65; sh: 21; cpp: 14
file content (32 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
######################
Debugging your Project
######################

Builder provides a debugger interface which can be extended for various languages.
Currently, there is support for the GNU Debugger which supports C, C++, and to some degree Rust, and Vala.

To start the debugger, select "Run with Debugger" from the Run button.

.. image:: ../figures/run-button.png
   :width: 297 px
   :align: center

.. warning:: If Builder fails to locate a debugger that is compatible with your project, an error message will be displayed.

After Builder has started the debugger, you'll be greeted with a series of controls to step through your application.

.. image:: ../figures/run-with-debugger.png
   :width: 1253 px
   :align: center

.. note:: The debugger support in Builder is currently limited, and will be expanded in future releases.

You can currently do a few things with the debugger in Builder.

 - Step through execution in a variety of fashions
 - Browse threads and thread stacks
 - Explore current register values
 - View the values of locals and parameters
 - Add and remove breakpoints to aid in stepping through execution
 - View disassembly when no source is available