Has anyone been able to debug with VS2005?

Carlos Santander csantander619 at gmail.com
Tue Nov 14 14:59:39 PST 2006

Jim Hewes escribió:
> Thanks, I'll check out the plug-in when dsource is back.
> I was able to debug the sample hello.exe app in VS2005 by doing the 
> following:
> 1. Load hello.exe into VS2005 as a project. Also, open the hello.d source 
> file.
> 2. Press F11 to take one step into the code. Source is not available, so 
> show disassembly.
> 3. In the disassembly window, enter the address as "_Dmain" and hit return. 
> The window will show the mixed source/assembly at _Dmain.
> 4. In the disassembly window, set a breakpoint at the first line of _Dmain 
> and hit Go.
> 5. In the source window, you should now see execution stop at the first line 
> and you can single step from there.
> However, I wasn't able to set breakpoints from the source window. But I 
> haven't had much time to play with it yet. Hopefuly I can spend more time 
> next weekend. (Hey! I have a day job.)
> Jim

You have to compile with -g to do so.

Carlos Santander Bernal

More information about the Digitalmars-d-learn mailing list