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:
-
Click on the main menu.
-
Select .
-
In the Import Executable dialog box, choose PE Windows Parser
from the drop-down list of binary parsers.
-
Browse to the .exe file. Click
Next.
-
Specify the name of the new project or browse to the existing project.
-
Select the check box to create a launch configuration with the C/C++
Application option. Specify the configuration name.
-
Click Finish.
-
In the appeared Debug Configurations dialog box, click your configuration in the
left pane and the Environment tab in the right pane.
-
Click Select... and choose the PATH
variable. Click OK.
-
Select the Debugger tab and specify the gdb.exe
location in the GDB Debugger field.
-
Click Apply to save the changes. The project with
imported executable file is ready to be debugged.