C/C++ Project Properties Dialog Box: Debug

See Also 

The Debug panel lets you specify properties that are used when you debug your project in the IDE.

Debug Command. For debugging, the IDE uses the command specified as the Run Command in the Run properties by default. You can specify a different command to be executed when you debug the project. The IDE runs the command as /bin/sh -c "debug-command" which enables you to use any shell syntax including redirection and pipes. Type the command in the Debug Command field the same way you would run it from the command line. For example, you could type my-script -opt1 -opt2 to run a script and specify two options, or mycommand > output.log to run your command and send the output to a logfile. Unlike the Run Command, the Debug Command history is not maintained.

Working dir. By default, the IDE uses the run directory as the working directory when debugging your project. You can specify a different working directory for the IDE to use for debugging.

Gdb Init File. By default, the IDE uses the .gdbinit file in your home directory. You can specify a different .gdbinit file for gdb commands to be executed before the debugging session starts.

Source dirs. You can specify directories to be added to the beginning of the search path for source files.

Follow Fork Mode. Specify whether to follow the parent or child process after a call to fork or vfork.

Detach On Fork. Set to on to make the debugger detach from one process after it forks, or off to stay attached to both processes.

Substitute Path. You can map your compile time and debug time file paths if they are different.

See also
  C/C++ Project Properties Dialog Box:
      Build
      Linker
      General
      Compiler
      Run
      Packaging
      Make
      Required Projects
      Code Assistance
      Formatting

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.