why i like VS2008 debugger

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

why i like VS2008 debugger

Post by avansc »

disclaimer:
1. this is not even 5% of what you can do with the debugger, its mearly a few nice things. only two really, but one of them have saved me hours and hours of looking through thousands and thousands of lines of code.

2. by no means im i stating that this is the best debugger/IDE or anything of the nature.

3. i am also not saying that other debuggers/IDE cant do this.

Image

this is kinda nifty. you can see all the dependencies and where you can find them. very nice if you are having trouble distributing a working copy.

Image

this is really nice.
on the locals tab you see all the variables which is in the current function or piece of code you are in when a breakpoint or crash is reached.
notice the tree structure. you can go into any member var is see it value and memory location. this is great if you know X is suppose to be 10 but its 123456164, so then its alot easier to debug...

anyways, these are some of the things i use. but note that its only a small fraction of whats available to you.

note:
F11 - step into
F120- step over
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
Kros
Chaos Rift Regular
Chaos Rift Regular
Posts: 136
Joined: Tue Feb 24, 2009 4:01 pm
Current Project: N/A
Favorite Gaming Platforms: PC, Playstation/2/3
Programming Language of Choice: C++
Location: Oregon,USA
Contact:

Re: why i like VS2008 debugger

Post by Kros »

/me high five.
Isaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
YouTube Channel
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: why i like VS2008 debugger

Post by MarauderIIC »

I always prefer setting a watch to the locals, as the locals tends to show me stuff that I know I don't need to know. Autos is good sometimes though, because it'll tell you what a function returned.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
CC Ricers
Chaos Rift Regular
Chaos Rift Regular
Posts: 120
Joined: Sat Jan 24, 2009 1:36 am
Location: Chicago, IL

Re: why i like VS2008 debugger

Post by CC Ricers »

avansc, how did you get msvcrt.dll and msvcr90d.dll to load the symbols? I assume that these are the distributable dlls that need to go with your program. Also, there's an exclamation mark next to msvcr90d.dll when I'm debugging.
Post Reply