Debugging an Existing Executable

Use the import feature to import and debug an executable you have already built. This feature will automatically create a project and debug configuration for you. This is helpful if you have an executable built with debug symbols but may not have the project used to build the executable.

Importing Executables for Debugging

  1. Select the File > Import... menu item.
  2. In the Import wizard dialog, click C/C++ and select C/C++ Executable.

    Import dialog

  3. Click Next.
  4. In the Import C/C++ Executable Files page of the Import Executable dialog:

    Import Executable dialog

    NOTE You can import any executable, but only those built with debug symbols will be let you step through source code and see variable values.

  5. Click Next.
  6. In the Choose Project page of the Import Executable dialog:

    Import Executable dialog

  7. Click Finish.

    The executable is added to the C/C++ Projects view.

  8. If Create a Launch Configuration was activated, the Debug dialog appears.

    Debug launch configuration dialog

  9. Click Debug.

    The debugger launches and you can begin debugging the executable.

Setting breakpoints

Expand the executable in the C++ Projects view to see the list of source files. Only executables built with debug symbols will show a list of source files. The source files can be opened in the editor so you can set breakpoints. Use these files only for debugging, you can not change them and rebuild the executable with this project.

C++ Projects View

Related concepts
Debug overview
Debug information

Related tasks
Debugging

Related reference
Run and Debug dialog box


Nokia Copyright Statement