How to debug in Visual studio?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Mar 30 04:57:47 PDT 2007


Daniel Keep wrote:
> The *second* problem is that I'm coding in DWEB.  What happens here is
> that my source .dw file is tangled into a .d file, which is then
> compiled.  So when I go to debug, instead of displaying the line in my
> original source file, it displays the line in the horrific, unreadable
> mess that is the .d file.
> 
> Basically, every single time I recompile, I have to go in, delete the .d
> files, and copy the .dw files to .d files in order to get the right
> lines to show up. [2]
[snip]
> [2] Yes, D encodes the *correct* line number, but the *wrong* filename!
>  I posted a request to fix this, and never got a single reply :'(

Do the .d files contain the correct "#line" token sequences?
I.e. something like '#line 6 "myfile.dw"' (_including_ the file name)?
If so then DMD _should_ generate the correct debug info (according to 
http://www.digitalmars.com/d/lex.html#specialtokens).
I haven't tested this, among other things because it probably wouldn't 
mean much since I'm not using Windows and debug info is different on Linux.



More information about the Digitalmars-d mailing list