Private
Public Access
11
1
1
Running with a Debugger
watts edited this page 2023-02-09 13:59:39 +01:00

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:

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