Update Running with a Debugger
@@ -1,10 +0,0 @@
|
||||
```bash
|
||||
cd ~/work/stxm-test/build/PixelatorController
|
||||
ddd src/PixelatorController-bin
|
||||
```
|
||||
in debugger
|
||||
```run config/NoHardwareSettings.json```
|
||||
(no hardware)
|
||||
or
|
||||
```run ../../PixelatorController/config/PolLux/settings.json```
|
||||
(standard PolLux settings)
|
||||
10
Running-with-a-Debugger.md
Normal file
10
Running-with-a-Debugger.md
Normal file
@@ -0,0 +1,10 @@
|
||||
Firstly, it is useful to compile without optimisation - edit work/stxm/build/PixelatorController/Makefile to remove `-O2` from the compile flags (currently 3 instances) before running `make`.
|
||||
|
||||
Connect the debugger to the binary with:
|
||||
```bash
|
||||
cd ~/work/stxm-test/build/PixelatorController
|
||||
ddd src/PixelatorController-bin
|
||||
```
|
||||
Then, run the binary in the debugger, passing the appropriate settings file, e.g.:
|
||||
- (no hardware) - ```run config/NoHardwareSettings.json```, or
|
||||
- (standard PolLux settings) - ```run ../../PixelatorController/config/PolLux/settings.json```
|
||||
Reference in New Issue
Block a user