www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - Debugging phobos with VisualD

reply Igor <stojkovic.igor gmail.com> writes:
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?
Sep 13 2017
parent Rainer Schuetze <r.sagitario gmx.de> writes:
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.
Sep 13 2017