How to debug in Visual studio?
Daniel Keep
daniel.keep.lists at gmail.com
Thu Mar 29 19:30:24 PDT 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/
More information about the Digitalmars-d
mailing list