I do not know how to use a debugger....... :( Never used one in my whole intire life, but now I want to learn to.....anyone know of a good tutorial to learn to use the debugger that comes with VC++? Thank you.
Printable View
I do not know how to use a debugger....... :( Never used one in my whole intire life, but now I want to learn to.....anyone know of a good tutorial to learn to use the debugger that comes with VC++? Thank you.
Try the MSDN (http://msdn.microsoft.com/) - you should find something if run a search.
I haven't used one yet.
nor have i.
I use gdb somewhat regularly.
i only use the MSVC++ one when my program crashes and it says "click cancel or debug" in which case you hit debug and it either points to the line of c++ code that caused the error or gives you an assembly dump. it can be handy.
agreedQuote:
Originally posted by Perspective
i only use the MSVC++ one when my program crashes and it says "click cancel or debug" in which case you hit debug and it either points to the line of c++ code that caused the error or gives you an assembly dump. it can be handy.
same here
ITs fun to mess with the asm dump. Just rembmer setting esp to 00001000 and eip to ffffffff
:)
I'm sure you've all used a debugger, as you must've had at least 10 crashes before.
I think that I use the debugger in every program I write for at least 1/10th of the time it took to write. Its just soo easy to use. Press F10 to step into and see your execution unfold (F5 to just execute normally until:::), use breaking points to stop when you want to, use the watch to find out when certain variables change and where, and use the immediates/auto to find out any variable's value at a certain time during deugging. Its cake and its easy and it saves tons of time.
I don't understand how people can possibly work without a decent debugger. I used to have to put debugging statements into code and all that stuff, but frequently, that changes the behaviour of the program. Give me a good debugger anyday now.
The debugger with MS VC++ is pretty good, but is no use for debugging extensively multithreaded code, you can't attach the debugger on a "per thread" basis.
[echo]
I don't understand how people can possibly work without a decent debugger.
[/echo]
Essential tool.
I like in VC++ [CTRL]+B where I can set conditional break points.
Same here...never used on before...never needed one though
I agree: once programming is part of your work, you can't avoid debugging.Quote:
Originally posted by adrianxw
I don't understand how people can possibly work without a decent debugger.
You might not need it while doing some homework-alike projects, however, once a project becames a little more complex, you'll find this tool useful.
Indeed, it's a nightmare. Trace outputs, conditional breakpoints are a good alternative to catch errors in multithreaded programs (it's real "fun" to search the "bad" thread within a trace output file of more Mbytes ;°> ).Quote:
Originally posted by adrianxw
The debugger with MS VC++ is pretty good, but is no use for debugging extensively multithreaded code, you can't attach the debugger on a "per thread" basis.