Jump to page: 1 2 3
Thread overview
How to debug in Visual studio?
Dec 08, 2006
Robin Min
Dec 08, 2006
Lionello Lunesu
Dec 09, 2006
Robin Min
Dec 09, 2006
Lionello Lunesu
Mar 29, 2007
Patrick Byrne
Mar 30, 2007
Bill Baxter
Mar 30, 2007
kris
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Patrick Byrne
Mar 30, 2007
Jascha Wetzel
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Jascha Wetzel
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Jascha Wetzel
Mar 30, 2007
Patrick Byrne
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Patrick Byrne
Mar 30, 2007
Jascha Wetzel
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Daniel Keep
Mar 30, 2007
Frits van Bommel
Mar 30, 2007
Jascha Wetzel
Mar 30, 2007
Jascha Wetzel
December 08, 2006
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
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
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
??? 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
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
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
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

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
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
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.
« First   ‹ Prev
1 2 3