www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - VC 2005 Express Edition: breakpoints are ignored

reply Kris <Kris_member pathlink.com> writes:
While VC-6.0 will happily debug D executables, I can't get VC-2005 to respect
breakpoints - though it will display a stack trace, and jump to the appropriate
source file/line. 

Anyone else run into this problem?
Jan 06 2005
parent reply Sean Kelly <sean f4.ca> writes:
Kris wrote:
 While VC-6.0 will happily debug D executables, I can't get VC-2005 to respect
 breakpoints - though it will display a stack trace, and jump to the appropriate
 source file/line. 
 
 Anyone else run into this problem?

VC .NET 2003 breakpoints work okay, this must be some quirk of 2005. (though I'd still love it if someone could tell me how to inspect variables while debugging in VC) Sean
Jan 07 2005
next sibling parent "Lynn Allan" <l_d_allan adelphia.net> writes:
 (though I'd still love it if someone could tell me how to inspect
 variables while debugging in VC)

Here's what works "better than nothing" with me with Visual Studio 98. (these tips are from various sources ... I didn't come up with them ... thx Arcane Jill, wherever you are). YMMV and they may not actually compile and I just jotted them down "freehand" <g> * You can't really "see" char[] variables. I put in: char[] myVar = "Hello"; debug char* _dbMyVar = myVar; * You can't really "see" global (and class?) primitive variables. I put in: int myGlobal = 1234; void main() debug int _dbgMyGlobal = myGlobal; } class myClass { int m_myClassVar; void myFunction() { debug int _dbgMyClassVar = m_myClassVar; } As of dmd 0.106 or so, you can now "see" into objects, at least as far as the primitives are concerned. This was a major improvement. Thx to The WB! Here are links to previous threads with info about using the Visual Studio ide (Thx AJ): http://www.digitalmars.com/d/archives/digitalmars/D/1608.html http://www.digitalmars.com/d/archives/digitalmars/D/5566.html Here are (older?) downloads with Visual Studio 98 project files: Console: http://berbible.sourceforge.net/misc/TestConsole.zip Windows Win32 gui api: http://berbible.sourceforge.net/misc/MiniCalcWinGui.zip
Jan 10 2005
prev sibling parent "Lynn Allan" <l_d_allan adelphia.net> writes:
 (though I'd still love it if someone could tell me how to inspect
 variables while debugging in VC)

Meant to mention in previous post: * In VS98, click on the "Locals" tab to see (you guessed it :-) local variables. Otherwise it may not look as if anything is visible. * Mouse "OnHover" often works with local primitives
Jan 10 2005