Debugging a loaded library
Posted: Wed Aug 21, 2024 3:47 pm
Hi all!
I have a main executable (coded in PB) accessing a dll library (also coded in PB).
In windows, it looks like the -d compiler argument does nothing when the /DLL (or linux/macos equivalent) argument is used.
Does PB give the possibility to debug a loaded library (for example by opening a specific console showing the library dbg messages)? If it exists I could not find it.
When coding in c/cpp, gdb allows debugging loaded libraries (you need to put a break on you main program, then press F11 on the gdb windows to switch to the loaded library provided the debug symbols are available). Is there a workaround to do something similar in PB?
I have a main executable (coded in PB) accessing a dll library (also coded in PB).
In windows, it looks like the -d compiler argument does nothing when the /DLL (or linux/macos equivalent) argument is used.
Does PB give the possibility to debug a loaded library (for example by opening a specific console showing the library dbg messages)? If it exists I could not find it.
When coding in c/cpp, gdb allows debugging loaded libraries (you need to put a break on you main program, then press F11 on the gdb windows to switch to the loaded library provided the debug symbols are available). Is there a workaround to do something similar in PB?