Thread overview
Problems with debuggers
Feb 05, 2006
Todor Totev
Feb 05, 2006
rsl
Feb 05, 2006
Walter Bright
Feb 05, 2006
Hasan Aljudy
Feb 05, 2006
AgentOrange
Feb 05, 2006
AgentOrange
Nov 10, 2006
RD
February 05, 2006
Hi all,
I followed the advices in http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments
about using WinDbg and MS visual studio to debug D programmes but I didn't succeed.
I tried with VS2005 (both Express edition & professional).
I followed the procedure and set a breakpoint on the 1st line of main().
When I start debugging VS gives me a message that it cannot find symbols
so I cannot use breakppoints.
Then I tried WinDbg freshly downloaded from MS site. The same result -
it complains about missing symbols.
I double checked that I compile with -g -debug
Does anyone succeed in using those beasts to debug D programmes?
Any help will be greatly appreciated.
Regards,
Todor

As a side note, Regan Heath suggest to use post-build step for running optlink.
I found that this really upsets VS IDE so I used pre-link step instead.
Todor
February 05, 2006
VS2005 debugger fails breakpoint mapping for executables created by dmc/dmd.

I don't know why breakpoint setting can't works in VS2005.
To enter break mode use asm{int 3;} or FunctionBreak like _Dmain().
once entered break mode it can debug same like VS2003.

In article <op.s4halowbihwmk4@todor-1-xp.sanbolic.local>, Todor Totev says...
>
>
>Hi all,
>I followed the advices in  =
>
>http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments
>about using WinDbg and MS visual studio to debug D programmes but I didn=
>'t  =
>
>succeed.
>I tried with VS2005 (both Express edition & professional).
>I followed the procedure and set a breakpoint on the 1st line of main().=
>
>When I start debugging VS gives me a message that it cannot find symbols=
>
>so I cannot use breakppoints.
>Then I tried WinDbg freshly downloaded from MS site. The same result -
>it complains about missing symbols.
>I double checked that I compile with -g -debug
>Does anyone succeed in using those beasts to debug D programmes?
>Any help will be greatly appreciated.
>Regards,
>Todor
>
>As a side note, Regan Heath suggest to use post-build step for running  =
>
>optlink.
>I found that this really upsets VS IDE so I used pre-link step instead.
>Todor


February 05, 2006
Microsoft's newer windbg's seem to have dropped support for codeview debug info. But the one that comes on the Digital Mars CD *does* work.


February 05, 2006
Walter Bright wrote:
> Microsoft's newer windbg's seem to have dropped support for codeview debug info. But the one that comes on the Digital Mars CD *does* work. 
> 
> 

Why don't you put it online for free download? <g>
February 05, 2006
build with -g

In article <op.s4halowbihwmk4@todor-1-xp.sanbolic.local>, Todor Totev says...
>
>
>Hi all,
>I followed the advices in  =
>
>http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments
>about using WinDbg and MS visual studio to debug D programmes but I didn=
>'t  =
>
>succeed.
>I tried with VS2005 (both Express edition & professional).
>I followed the procedure and set a breakpoint on the 1st line of main().=
>
>When I start debugging VS gives me a message that it cannot find symbols=
>
>so I cannot use breakppoints.
>Then I tried WinDbg freshly downloaded from MS site. The same result -
>it complains about missing symbols.
>I double checked that I compile with -g -debug
>Does anyone succeed in using those beasts to debug D programmes?
>Any help will be greatly appreciated.
>Regards,
>Todor
>
>As a side note, Regan Heath suggest to use post-build step for running  =
>
>optlink.
>I found that this really upsets VS IDE so I used pre-link step instead.
>Todor


February 05, 2006
Oops, im sorry, i missed where you said you used -g, yeah just get an older dev studio

In article <op.s4halowbihwmk4@todor-1-xp.sanbolic.local>, Todor Totev says...
>
>
>Hi all,
>I followed the advices in  =
>
>http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments
>about using WinDbg and MS visual studio to debug D programmes but I didn=
>'t  =
>
>succeed.
>I tried with VS2005 (both Express edition & professional).
>I followed the procedure and set a breakpoint on the 1st line of main().=
>
>When I start debugging VS gives me a message that it cannot find symbols=
>
>so I cannot use breakppoints.
>Then I tried WinDbg freshly downloaded from MS site. The same result -
>it complains about missing symbols.
>I double checked that I compile with -g -debug
>Does anyone succeed in using those beasts to debug D programmes?
>Any help will be greatly appreciated.
>Regards,
>Todor
>
>As a side note, Regan Heath suggest to use post-build step for running  =
>
>optlink.
>I found that this really upsets VS IDE so I used pre-link step instead.
>Todor


November 10, 2006
U need to set the _NT_SYMBOL_PATH. This should resolve the symbols error