Mention a possible way to debug the host

This commit is contained in:
Robbert van der Helm
2020-03-12 20:58:51 +01:00
parent d5d3164ae3
commit bce45a244d
+6 -1
View File
@@ -127,7 +127,12 @@ instance of Carla with gdb attached:
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.
Doing the same thing with the Wine VST host is also possible but it's a bit
tricky. I have not had any success with attaching winedbg to running processes.
The only thing that seems to work is to modify `host-bridge.cpp` to not launch
`yabridge-host.exe` normally, but to instead start a new (detached) terminal
emulator process running the Wine host through `winedbg --gdb`. I wouldn't
recommended doing this if you can avoid it.
## Rationale