Private
Public Access
11
1

Update Running with a Debugger

2023-02-09 13:59:39 +01:00
parent 4371a017f7
commit d0c261914e
2 changed files with 10 additions and 10 deletions

@@ -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)

@@ -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```