Debugging phobos with VisualD

Rainer Schuetze via Digitalmars-d-debugger digitalmars-d-debugger at puremagic.com
Wed Sep 13 20:24:45 UTC 2017



On 13.09.2017 14:06, Igor wrote:
> I seem to have corrupted something within my installation and I can't 
> find how to fix it. I am convinced that earlier I was able to setup a 
> breakpoint within some phobos module that I used and step through phobos 
> code from my project but that doesn't work any more.
> 
> Does anyone know how I can make that work again?

As phobos is released without debug information, functions built into 
the library cannot be debugged as is. Templates should be debuggable 
unless the compiler can deduce from the source code that they have been 
instantiated in phobos, too.

As a workaround you can rebuild phobos as part of the project by 
enabling "Build and use local version of phobos with same compiler 
options" in the linker options of the debug configuration.


More information about the Digitalmars-d-debugger mailing list