5 https://git.automotivelinux.org/src/xds/xds-docs/plain/docs/part-1/debug-ide.md?h=master
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/xds-docs-guides-devguides-book.yml -->
12 This topic describes how to use `xds-gdb` from within an Interactive
13 Development Environment (IDE) to debug your application.
15 [NetBeans](https://netbeans.org/) IDE as an example.
19 Before using the IDE, you need to declare the project you want to debug
25 The project you declare can also have been built using XDS.
26 For information on building the project using XDS, see the
27 "[Create your first AGL application](../../../#create-your-first-agl-application)"
29 <!--end-section-note-->
33 This section presents an example using NetBeans version 8.x:
35 1. Select the **Options** item in the **Tools** menu.
37 2. Open the **Build Tools** tab.
39 3. Open the **C/C++** tab and click the **Add** button to reveal the "Add New
40 Tool Collection" dialog box:
42 {:: style="width:90%; max-width:700px; margin:auto; display:flex"}
44 4. Fill in the **Make Command** and **Debugger Command** fields so that they point to the XDS tools.
45 Following is an example:
47 {:: style="width:90%; max-width:700px; margin:auto; display:flex"}
49 5. Click on **OK** button.
51 6. Select the **Project Properties** item in the **File** menu to
52 update your debug settings.
54 7. In the "Project Properties" dialog, be sure that the "Gen3 board"
55 appears in the "Configuration" field (i.e. active).
57 8. In the "Categories" navigation pane, select **Run**.
61 - Run Command: `target/start-on-root@renesas-gen3.sh`
65 The script name could depend on the `RSYNC_TARGET`
66 variable you set in pre-build command.
67 <!--end-section-note-->
69 - Run Directory: `build_gen3`
71 10. In the "Categories" navigation pane, select **Debug**.
73 11. Set the following:
75 - Debug command: `/bin/true`
77 - Working Directory: Leave this field blank
79 - Gdb Init File: `target/gdb-on-root@renesas-gen3.ini`
83 The script name could depend on the `RSYNC_TARGET`
84 variable you set in pre-build command.
85 <!--end-section-note-->
87 {:: style="width:90%; max-width:700px; margin:auto; display:flex"}
91 13. Click **OK** to save your settings.
93 14. Start debugging your application by selecting the **Debug Project** item
94 in the **Debug** menu, or by entering the **CTRL+F5** shortcut.