Debugging a program the first time

To create a launch configuration to debug a program for the first time:
  1. In the Project Explorer view, select your project.
  2. Select Run > Debug Configurations… .
  3. Select a launch configuration type:

    Launch Configurations dialog

    Typically, if you're connecting to your target via IP, you can select C/C++ QNX QConn (IP). If not, see the Types of launch configurations section in this chapter before deciding.

    Note: You can't create a local debug session with the QNX GDB Debugger. This debugger is available only on qconn for postmortem debugging.
  4. Click the New button.

    The dialog shows the various tabs for the launch configuration.

    Launch Configurations dialog

  5. In the Name field, type a name for the configuration.
  6. Fill in the details in the various tabs. For details about each tab, see the Setting execution options section in this chapter.
  7. Click Debug.

    Now, you can run (launch) and debug your program.

Note: You can also use the Debug As menu item to conveniently select a particular launch configuration and launch and existing debug configuration:

Debug As item

Related concepts
What is a launch configuration?
Types of launch configurations
Running and debugging subsequent times
Setting execution options
Related tasks
Running and debugging for the first time