Displaying relevant files within the project explorer
The following files are relevant for a C debugging session:
Files |
Description |
.gdbinit file |
initialization script for the GDB debugger |
.launch files |
containing instructions for logi.CAD 3 in order to be able to debug the application on the remote target system |
files within the folders src-gen and target |
containing the generated C-code (src-gen) and the object files respectively (target) |
As these files are not displayed in the project explorer by default, you must have these files displayed:
If required, change to one of the perspectives for application creating .
Click in toolbar of the project explorer and select Filters and Customization...
In the dialog, tab Filter, uncheck the following items:
.* resources
src-gen folder
target folder
In the dialog, click OK.
Result: Now the project explorer displays additional files.The following change of the .gdbinit file is required for remote target systems only. Do not change the .gdbinit file, if you want to debug the application on the built-in PLC.
Background information: This change instructs the GNU debugger to search for the relevant libraries on the remote target system.Double-click the .gdbinit file.
Copy the following line into this file and save the changes.
set sysroot target:/
If you start the debug session for the application (= opening the perspective Debug) and you get the message Warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code , you must replace this inserted line by the following line:
set sysroot remote:/