... | ... | @@ -107,18 +107,5 @@ The steps to step through/set breakpoints in the hardware_emulator are a bit mor |
|
|
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.
|
|
|
|
|
|
#### 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.
|
|
|
```
|
|
|
user@user:~/basic-simulator/install$ jps
|
|
|
120617 jps
|
|
|
115496 org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar
|
|
|
115484 org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar
|
|
|
120574 basic-simulator.jar
|
|
|
```
|
|
|
`120574` is the process ID for the `basic-simulator`
|
|
|
|
|
|
---
|
|
|
Next: [JSON-scenarios reference](/user-docs/JSON-scenarios-reference) |