Importing an EXE file for debugging with an APEX2 emulator

When you build an APEX2 application project using the EMU build configuration, you get an EXE file to be debugged with the APEX2 emulator. If you need to debug this file in the context of any other project (an existing or a new one), you can import it as described below.

To import an executable file:

  1. Click File > Import... on the main menu.
  2. Select C/C++ > C/C++ Executable.
  3. In the Import Executable dialog box, choose PE Windows Parser from the drop-down list of binary parsers.
  4. Browse to the .exe file. Click Next.

    Import Executable

  5. Specify the name of the new project or browse to the existing project.

    Import Executable

  6. Select the check box to create a launch configuration with the C/C++ Application option. Specify the configuration name.
  7. Click Finish.
  8. In the appeared Debug Configurations dialog box, click your configuration in the left pane and the Environment tab in the right pane.
  9. Click Select... and choose the PATH variable. Click OK.

    PATH

  10. Select the Debugger tab and specify the gdb.exe location in the GDB Debugger field.
  11. Click Apply to save the changes. The project with imported executable file is ready to be debugged.