| Thread overview | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 08, 2006 How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
hi, guys
I am a newbie need your help.
I had config my MS-IDE to develop my D application.But my question is ,
after I using 'dmd -c',I got the .obj file,maybe as you know , this .obj is
OMF format; It is mean that I can not use MS-Linker to get one .exe and .pdb
file for debug .
what can I do in this case? I know some tools using for convert COFF
format to OMF, Is there any tools can help me conver OMF to COFF?
any response will be appreciate.
Best Regard
Robin Min
| ||||
December 08, 2006 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Robin Min | VS will understand DMD's objs just fine, but make sure you compile with -g for the symbolic info. L. "Robin Min" <luonbin@hotmail.com> wrote in message news:elbshi$dc5$1@digitaldaemon.com... > hi, guys > I am a newbie need your help. > I had config my MS-IDE to develop my D application.But my question is , > after I using 'dmd -c',I got the .obj file,maybe as you know , this .obj > is OMF format; It is mean that I can not use MS-Linker to get one .exe and > .pdb file for debug . > what can I do in this case? I know some tools using for convert COFF > format to OMF, Is there any tools can help me conver OMF to COFF? > > any response will be appreciate. > > Best Regard > Robin Min > | |||
December 09, 2006 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | really? On my laptop, there is only VS2005, it is not work well as you'd said,although I had append the '-g'. I think maybe you mean some old version of Visual studio? for example ,VC6 or older, I do not check it , casuse do not installed this old dev-env. After google, I got some information about VS2005: from this version ,M$-linker will not support link OMF format .obj file. Otherwise your will get some link error message. So my question is is there already any solution on this problem? I belive someother linker can do this job, but I am not sure. BR Robin Min "Lionello Lunesu" <lionello@lunesu.remove.com> дÈëÏûÏ¢ÐÂÎÅ:elcjln$16ud$1@digitaldaemon.com... > VS will understand DMD's objs just fine, but make sure you compile with -g for the symbolic info. > > L. > > "Robin Min" <luonbin@hotmail.com> wrote in message news:elbshi$dc5$1@digitaldaemon.com... >> hi, guys >> I am a newbie need your help. >> I had config my MS-IDE to develop my D application.But my question is >> , after I using 'dmd -c',I got the .obj file,maybe as you know , this >> .obj is OMF format; It is mean that I can not use MS-Linker to get one >> .exe and .pdb file for debug . >> what can I do in this case? I know some tools using for convert COFF >> format to OMF, Is there any tools can help me conver OMF to COFF? >> >> any response will be appreciate. >> >> Best Regard >> Robin Min >> > > | |||
December 09, 2006 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Robin Min | ??? I'm using VS2005 too, and VS will happily show the line number for exceptions. I've been debugging D with VC6 and VS2003 as well. The linker might not support OMF, but the debugger hasn't changed, I think. Have a look at vsplugind on dsource.org.. It will get you syntax highlighting and F7-building in VS2005, but it shouldn't be needed for debugging. (Not even for syntax highlighting, you can do that with a "usertype.dat" in the VS bin folder) L. "Robin Min" <luonbin@hotmail.com> wrote in message news:eld95i$1r2b$1@digitaldaemon.com... > really? On my laptop, there is only VS2005, it is not work well as you'd said,although I had append the '-g'. > > I think maybe you mean some old version of Visual studio? for example ,VC6 > or older, I do not check it , > casuse do not installed this old dev-env. > > After google, I got some information about VS2005: from this version > ,M$-linker will not support link OMF > format .obj file. Otherwise your will get some link error message. > > So my question is is there already any solution on this problem? I belive > someother linker can do this job, > but I am not sure. > > > BR > Robin Min > > > > > "Lionello Lunesu" <lionello@lunesu.remove.com> дÈëÏûÏ¢ÐÂÎÅ:elcjln$16ud$1@digitaldaemon.com... >> VS will understand DMD's objs just fine, but make sure you compile with -g for the symbolic info. >> >> L. >> >> "Robin Min" <luonbin@hotmail.com> wrote in message news:elbshi$dc5$1@digitaldaemon.com... >>> hi, guys >>> I am a newbie need your help. >>> I had config my MS-IDE to develop my D application.But my question is >>> , after I using 'dmd -c',I got the .obj file,maybe as you know , this >>> .obj is OMF format; It is mean that I can not use MS-Linker to get one >>> .exe and .pdb file for debug . >>> what can I do in this case? I know some tools using for convert COFF >>> format to OMF, Is there any tools can help me conver OMF to COFF? >>> >>> any response will be appreciate. >>> >>> Best Regard >>> Robin Min >>> >> >> > > | |||
March 29, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | Lionello Lunesu Wrote:
> The linker might not support OMF, but the debugger hasn't changed, I think.
Same here. I can compile and run code in VS2005xpress, but I can't debug. Is this possible to do at all, please?
Thanks
| |||
March 30, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Patrick Byrne | Patrick Byrne wrote:
> Lionello Lunesu Wrote:
>
>> The linker might not support OMF, but the debugger hasn't changed, I think.
>
> Same here. I can compile and run code in VS2005xpress, but I can't debug. Is this possible to do at all, please?
>
> Thanks
I tried to get this working a while back and came to the conclusion it wasn't possible. I think someone mentioned that VS2005 has dropped support for the debugging info format that DMD uses. But either way, debugging with VS2003 was no treat, because everything D specific just came out as longs and void*s. CodeBlocks with ddbg is much better.
Or wait for the rumored VS add-in for D coming <real soon>.
--bb
| |||
March 30, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | Bill Baxter wrote:
> Patrick Byrne wrote:
>
>> Lionello Lunesu Wrote:
>>
>>
>>> The linker might not support OMF, but the debugger hasn't changed, I think.
>>
>>
>> Same here. I can compile and run code in VS2005xpress, but I can't debug. Is this possible to do at all, please?
>>
>> Thanks
>
>
> I tried to get this working a while back and came to the conclusion it wasn't possible. I think someone mentioned that VS2005 has dropped support for the debugging info format that DMD uses. But either way, debugging with VS2003 was no treat, because everything D specific just came out as longs and void*s. CodeBlocks with ddbg is much better.
>
> Or wait for the rumored VS add-in for D coming <real soon>.
>
> --bb
FWIW, I use MSVC6 all the time with pretty decent success. It does suck that it can't see inside classes or arrays half the time, but after a while you just, erm, lower your expectations ;)
| |||
March 30, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to kris | kris wrote: > Bill Baxter wrote: >> Patrick Byrne wrote: >> >>> Lionello Lunesu Wrote: >>> >>> >>>> The linker might not support OMF, but the debugger hasn't changed, I think. >>> >>> >>> Same here. I can compile and run code in VS2005xpress, but I can't debug. Is this possible to do at all, please? >>> >>> Thanks >> >> >> I tried to get this working a while back and came to the conclusion it wasn't possible. I think someone mentioned that VS2005 has dropped support for the debugging info format that DMD uses. But either way, debugging with VS2003 was no treat, because everything D specific just came out as longs and void*s. CodeBlocks with ddbg is much better. >> >> Or wait for the rumored VS add-in for D coming <real soon>. >> >> --bb > > FWIW, I use MSVC6 all the time with pretty decent success. It does suck that it can't see inside classes or arrays half the time, but after a while you just, erm, lower your expectations ;) Same with windbg. When I'm actually debugging a procedure, and I want to watch arrays and such, I make a habit of adding stuff like this: debug auto somestr_ptr = somestr.ptr; debug auto somestr_length = somestr.length; Messy, but it works. I'd kill to have a better debugging environment, but I somehow doubt that's going to happen. *sigh* -- Daniel -- int getRandomNumber() { return 4; // chosen by fair dice roll. // guaranteed to be random. } http://xkcd.com/ v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/ | |||
March 30, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | Thanks for your replies, chaps. > I tried to get this working a while back and came to the conclusion it > wasn't possible. I think someone mentioned that VS2005 has > dropped support for the debugging info format that DMD uses. VS8XPress docs indicate that LINK.EXE accepts OMF files....? Ho hum. > Or wait for the rumored VS add-in for D coming <real soon>. Is there any more information on this, please? I saw the vsplugind page at dsource.org, but it looks as though that won't be available for Visual Studio Express edition. I presume that nice features like customisation plugins won't be available for the freebie version. :-( Patrick | |||
March 30, 2007 Re: How to debug in Visual studio? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | Daniel Keep wrote: > Messy, but it works. I'd kill to have a better debugging environment, but I somehow doubt that's going to happen. *sigh* i'd suggest http://ddbg.mainia.de/ i might go as far as to claim that it's better than windbg. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply