Jump to page: 1 2 3
Thread overview
Debugger with source code display
Apr 27, 2005
Andreas Schmid
Apr 27, 2005
clayasaurus
Apr 27, 2005
Maxime Larose
Apr 27, 2005
Andreas Schmid
Apr 27, 2005
Andrew Fedoniouk
Apr 27, 2005
Maxime Larose
Apr 27, 2005
zwang
Apr 28, 2005
Andreas Schmid
Apr 28, 2005
Andreas Schmid
Apr 28, 2005
Maxime Larose
Apr 28, 2005
zwang
Apr 28, 2005
Walter
Name mangling - WAS: Re: Debugger with source code display
Apr 28, 2005
Maxime Larose
Apr 28, 2005
Walter
Apr 29, 2005
zwang
Apr 29, 2005
Walter
Apr 29, 2005
Ben Hinkle
Apr 29, 2005
Walter
Apr 30, 2005
Derek Parnell
Apr 30, 2005
Walter
Apr 30, 2005
Derek Parnell
Apr 30, 2005
Martin Boeker
Apr 30, 2005
Martin Boeker
Apr 30, 2005
Martin Boeker
Apr 30, 2005
Ben Hinkle
Apr 30, 2005
Sean Kelly
Apr 28, 2005
V
Apr 28, 2005
Walter
April 27, 2005
I'm in desperate need of a debugger for Windows that displays the original source code and lets me step through it. Is there anything like that?

-Andreas


April 27, 2005
Andreas Schmid wrote:
> I'm in desperate need of a debugger for Windows that displays the original source code and lets me step through it. Is there anything like that?
> 
> -Andreas 
> 
> 

cygwin's xemacs and gdc? Never tried it, but I don't see why it can't work.

April 27, 2005
MSVC++ does it for me. I even have a very old version... (dated 1998 I
think)

Max



"Andreas Schmid" <monkey@gmx.info> wrote in message news:d4o8jg$191t$1@digitaldaemon.com...
> I'm in desperate need of a debugger for Windows that displays the original source code and lets me step through it. Is there anything like that?
>
> -Andreas
>
>


April 27, 2005
Which version do you have? Are there any instructions on how to generate the correct debug info and load the source code + .obj file in VC++?

Does it display the D source code correctly, or only parts of it?

-Andreas

"Maxime Larose" <mlarose@broadsoft.com> wrote in message news:d4obbc$1bva$1@digitaldaemon.com...
> MSVC++ does it for me. I even have a very old version... (dated 1998 I
> think)
>
> Max
>
>
>
> "Andreas Schmid" <monkey@gmx.info> wrote in message news:d4o8jg$191t$1@digitaldaemon.com...
>> I'm in desperate need of a debugger for Windows that displays the
>> original
>> source code and lets me step through it. Is there anything like that?
>>
>> -Andreas
>>
>>
>
> 


April 27, 2005
> Does it display the D source code correctly, or only parts of it?

What do you mean by that exactly?

It does not show sometimes template instantiations, in other cases it just works.

WinDbg.exe is also an option.


April 27, 2005
About the source code, I'm not sure what you mean... you add files to your VC++ project and they show up if you double-click them...  I have VC++ version 6.0.

The correct debug info is generated automatically with: dmd -debug -g  (I personally use build; it works too).

If you right-click on a source file, you can set its properties. Since D files are non-C(++), they have a "Custom Build" sheet. In the "output" field, put in the name of the .obj file (and directory). VC++ will make the link between the source file and that .obj, and you can then set breakpoints, step through the code, see the disassembly, etc... Like you would with any normal C++ source file.

It all works seamlessly... Again the only issue I have seen is that sometimes VC++ will have problems with templates. In these cases, I usually "de-templatize" the code, debug it, and the re-template it again.

Hope this helps,

Max



"Andreas Schmid" <monkey@gmx.info> wrote in message news:d4ofdk$1fts$1@digitaldaemon.com...
> Which version do you have? Are there any instructions on how to generate
the
> correct debug info and load the source code + .obj file in VC++?
>
> Does it display the D source code correctly, or only parts of it?
>
> -Andreas
>
> "Maxime Larose" <mlarose@broadsoft.com> wrote in message news:d4obbc$1bva$1@digitaldaemon.com...
> > MSVC++ does it for me. I even have a very old version... (dated 1998 I
> > think)
> >
> > Max
> >
> >
> >
> > "Andreas Schmid" <monkey@gmx.info> wrote in message news:d4o8jg$191t$1@digitaldaemon.com...
> >> I'm in desperate need of a debugger for Windows that displays the
> >> original
> >> source code and lets me step through it. Is there anything like that?
> >>
> >> -Andreas
> >>
> >>
> >
> >
>
>


April 27, 2005
Does anyone know an easy way to display the values of class members or
elements of array/associative array in VC++?


Maxime Larose wrote:
> About the source code, I'm not sure what you mean... you add files to your
> VC++ project and they show up if you double-click them...  I have VC++
> version 6.0.
> 
> The correct debug info is generated automatically with: dmd -debug -g  (I
> personally use build; it works too).
> 
> If you right-click on a source file, you can set its properties. Since D
> files are non-C(++), they have a "Custom Build" sheet. In the "output"
> field, put in the name of the .obj file (and directory). VC++ will make the
> link between the source file and that .obj, and you can then set
> breakpoints, step through the code, see the disassembly, etc... Like you
> would with any normal C++ source file.
> 
> It all works seamlessly... Again the only issue I have seen is that
> sometimes VC++ will have problems with templates. In these cases, I usually
> "de-templatize" the code, debug it, and the re-template it again.
> 
> Hope this helps,
> 
> Max
> 
> 
> 
> "Andreas Schmid" <monkey@gmx.info> wrote in message
> news:d4ofdk$1fts$1@digitaldaemon.com...
> 
>>Which version do you have? Are there any instructions on how to generate
> 
> the
> 
>>correct debug info and load the source code + .obj file in VC++?
>>
>>Does it display the D source code correctly, or only parts of it?
>>
>>-Andreas
>>
>>"Maxime Larose" <mlarose@broadsoft.com> wrote in message
>>news:d4obbc$1bva$1@digitaldaemon.com...
>>
>>>MSVC++ does it for me. I even have a very old version... (dated 1998 I
>>>think)
>>>
>>>Max
>>>
>>>
>>>
>>>"Andreas Schmid" <monkey@gmx.info> wrote in message
>>>news:d4o8jg$191t$1@digitaldaemon.com...
>>>
>>>>I'm in desperate need of a debugger for Windows that displays the
>>>>original
>>>>source code and lets me step through it. Is there anything like that?
>>>>
>>>>-Andreas
>>>>
>>>>
>>>
>>>
>>
> 
> 
April 28, 2005
I use MS Visual Studio.NET 2003 for all my projects and I have now begun to use it with my first D program ported from C.  It took a bit of trial and error plus a couple links that helped out were:

http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments

http://www.highprogrammer.com/alan/windev/visualstudio.html

http://dlanguage.netunify.com/38

Another thing I used was VSTweak1-1-beta2 to add the extension .d and treat it like a C\C++ file for pretty decent syntax highlighting, though haven't gotten Intellisense to work on .d files just yet, still workin on that. You can find that here:

http://www.visualstudiohacks.com/vstweak


VS.NET's debugger is nice, it shows assembly and code as you step through.

V



Andreas Schmid wrote:
> I'm in desperate need of a debugger for Windows that displays the original source code and lets me step through it. Is there anything like that?
> 
> -Andreas 
> 
> 
April 28, 2005
"zwang" <nehzgnaw@gmail.com> wrote in message news:d4olb3$1lt5$1@digitaldaemon.com...
> Does anyone know an easy way to display the values of class members or elements of array/associative array in VC++?

Doubt it could be done without reverse engineering the VC++ debugger.  The ABIs for D and C++ are different, and the debugger is probably hardcoded to access C++ classes/arrays.


April 28, 2005
Thanks for the detailed instructions!

-Andreas

"Maxime Larose" <mlarose@broadsoft.com> wrote in message news:d4oif6$1it6$1@digitaldaemon.com...
> About the source code, I'm not sure what you mean... you add files to your VC++ project and they show up if you double-click them...  I have VC++ version 6.0.
>
> The correct debug info is generated automatically with: dmd -debug -g  (I personally use build; it works too).
>
> If you right-click on a source file, you can set its properties. Since D
> files are non-C(++), they have a "Custom Build" sheet. In the "output"
> field, put in the name of the .obj file (and directory). VC++ will make
> the
> link between the source file and that .obj, and you can then set
> breakpoints, step through the code, see the disassembly, etc... Like you
> would with any normal C++ source file.
>
> It all works seamlessly... Again the only issue I have seen is that
> sometimes VC++ will have problems with templates. In these cases, I
> usually
> "de-templatize" the code, debug it, and the re-template it again.
>
> Hope this helps,
>
> Max
>
>
>
> "Andreas Schmid" <monkey@gmx.info> wrote in message news:d4ofdk$1fts$1@digitaldaemon.com...
>> Which version do you have? Are there any instructions on how to generate
> the
>> correct debug info and load the source code + .obj file in VC++?
>>
>> Does it display the D source code correctly, or only parts of it?
>>
>> -Andreas
>>
>> "Maxime Larose" <mlarose@broadsoft.com> wrote in message news:d4obbc$1bva$1@digitaldaemon.com...
>> > MSVC++ does it for me. I even have a very old version... (dated 1998 I
>> > think)
>> >
>> > Max
>> >
>> >
>> >
>> > "Andreas Schmid" <monkey@gmx.info> wrote in message news:d4o8jg$191t$1@digitaldaemon.com...
>> >> I'm in desperate need of a debugger for Windows that displays the
>> >> original
>> >> source code and lets me step through it. Is there anything like that?
>> >>
>> >> -Andreas
>> >>
>> >>
>> >
>> >
>>
>>
>
> 


« First   ‹ Prev
1 2 3