Mention how to attach a debugger

This commit is contained in:
Robbert van der Helm
2020-03-12 17:01:25 +01:00
parent 28b3800fb4
commit 3eb5e3de02
+12 -2
View File
@@ -85,8 +85,7 @@ ninja -C build
```
When developing or debugging yabridge you can change the build type to either
`debug` or `debugoptimized` to enable debug symbols and optionally also disable
optimizations.
`debug` enable debug symbols and disable optimizations.
## Debugging
@@ -115,6 +114,17 @@ variables:
More detailed information about these levels can be found in
`src/common/logging.h`.
### Attaching a debugger
When needed, I found the easiest way to debug the plugin to be to load it in an
instance of Carla with gdb attached:
```shell
env YABRIDGE_DEBUG_FILE=/tmp/yabridge.log YABRIDGE_DEBUG_LEVEL=1 carla --gdb
```
I sadly haven't had any luck with winedbg for debugging the winelib binary.
## Rationale
I started this project because the alternatives were either unmaintained, not