mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Mention how to attach a debugger
This commit is contained in:
@@ -85,8 +85,7 @@ ninja -C build
|
|||||||
```
|
```
|
||||||
|
|
||||||
When developing or debugging yabridge you can change the build type to either
|
When developing or debugging yabridge you can change the build type to either
|
||||||
`debug` or `debugoptimized` to enable debug symbols and optionally also disable
|
`debug` enable debug symbols and disable optimizations.
|
||||||
optimizations.
|
|
||||||
|
|
||||||
## Debugging
|
## Debugging
|
||||||
|
|
||||||
@@ -115,6 +114,17 @@ variables:
|
|||||||
More detailed information about these levels can be found in
|
More detailed information about these levels can be found in
|
||||||
`src/common/logging.h`.
|
`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
|
## Rationale
|
||||||
|
|
||||||
I started this project because the alternatives were either unmaintained, not
|
I started this project because the alternatives were either unmaintained, not
|
||||||
|
|||||||
Reference in New Issue
Block a user