FAQ 566: Debugging Virtual Artifacts with Eclipse IDE
Question
How do I attach the debugger to a simulation running in VEOS using Eclipse IDE?
Solution
Debugging the source code during SIL simulation is useful. It allows you to set breakpoints, inspect variables, and step through the code. The V-ECU workflow allows you to integrate ECU code into a simulated artifact, allowing errors to be identified early in development. During the integration process, it is often advantageous to use a debugger to investigate faults and errors in more detail. VEOS allows external debuggers to be attached to VPUs that are built with the Debug configuration.
To debug source code in a SIL simulation using Eclipse IDE:
- Load the offline simulation application (OSA) to VEOS.
- In the Classic C Project dialog, enter the name of the debug project, select the compiler, and click Finish.
- In the New Folder dialog, select the current debug project and provide the path of the VEOS Build folder (containing source files, binaries and *.dll generated). Click “Finish”.
- In the Debug Configurations window, right-click on C/C++ Attach to Application and select “New Configuration”.
- In the new debug configuration that was created, give a name to the configuration in the “Main” tab. In the C/C++ Application field, enter the path of the *.dll file that was generated during the VEOS build. In the Build Configuration, select “Debug” and select the “Disable auto build” option.
- In the “Add Source” dialog, add a new compilation directory. Then, provide the path to the folder containing the source files and binaries in the VEOS build folder.
- In the Eclipse window, set the breakpoint at the required lines in the code and click “Debug Configuration”. Select the debug project and click “Debug”.
- Navigate to VEOS and start the simulation. Once the debugger is connected, “Call Trace” will be visible and the simulation is paused until the debugger resumes execution[JP..
Tags
| Date | 2026-10-16 |
| Product | VEOS |
| Information Type | Frequently Asked Questions |
| dSPACE Release | 2026-A |
| Keywords | SIL Support Central |