Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 07, 2005 VC 2005 Express Edition: breakpoints are ignored | ||||
---|---|---|---|---|
| ||||
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? |
January 07, 2005 Re: VC 2005 Express Edition: breakpoints are ignored | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | 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
|
January 10, 2005 Re: VC 2005 Express Edition: breakpoints are ignored | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | > (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 |
January 10, 2005 Re: VC 2005 Express Edition: breakpoints are ignored | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | > (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
|
Copyright © 1999-2021 by the D Language Foundation