... | ... | @@ -85,11 +85,15 @@ The steps to step through/set breakpoints in the hardware_emulator are a bit mor |
|
|
- Set your breakpoints in the C++ project, run the simulator.
|
|
|
- To return to using the default release version of the hardware_emulator, just delete the library alongside the basic-simulator jar; it will be re-exported.
|
|
|
|
|
|
#### In Windows environment
|
|
|
This is easily done in the Visual Studio solution for the hardware_emulator.
|
|
|
For this, open the `hardware_emulator.sln` solution in the build directory of the hardware_emulator. Then attach to the simulator thread by going to `Debug -> Attach to Process` and searching for *java* in the filter.
|
|
|
|
|
|
For other debuggers, if they require a process id to attach to, this id can easily be found by running `jps` (Java process utility).
|
|
|
|
|
|
#### In Linux environment
|
|
|
Debugging the hardware emulator is also possible under Linux environment. It is done using `gdb` command line debugger:
|
|
|
- Run the basic-simulator as after replacing the `hardware_emulator_lib` as described above.
|
|
|
- use `jps` command to find out the PID of the basic-simulator.
|
|
|
![jps](img/jps.png "PID of the running basic-simulator can be seen.")
|
|
|
|
|
|
---
|
|
|
Next: [Simulation Configuration](/user-docs/Simulation-Configuration) |
|
|
\ No newline at end of file |