|
-
June 9th, 2009, 09:35 AM
#1
What are the best debugging resources?
Rather than reading all the search results in this forum for debugging, I'd rather just ask. My question includes tools & references?
-
June 9th, 2009, 10:03 AM
#2
Re: What are the best debugging resources?
Most IDEs come with a decent debugger.
On Linux, there's gdb and valgrind. Valgrind is great for memory errors including leaks, and can be helpful in tracking down multithreading errors as well via the helgrind tool.
-
June 9th, 2009, 10:45 AM
#3
Re: What are the best debugging resources?
What language (GNU, Borland, Visual...) and what IDE (Code::Blocks, XCode, VS...)
As Lindley said, most IDEs have a good debugger, XCode probably has the best one, but it's Mac-only of course.
-
June 9th, 2009, 11:29 AM
#4
Re: What are the best debugging resources?
XCode's debugger is just a gdb wrapper. And honestly I find Visual Studio's more intuitive to work with. (I say that as a Mac user.)
-
June 9th, 2009, 11:30 AM
#5
Re: What are the best debugging resources?
Besides a debugger, liberal use of assertions to document pre-conditions and assumed facts in general can be a good debugging aid.
-
June 9th, 2009, 02:34 PM
#6
Re: What are the best debugging resources?
 Originally Posted by Lindley
XCode's debugger is just a gdb wrapper. And honestly I find Visual Studio's more intuitive to work with. (I say that as a Mac user.)
True, but it also comes with "Insruments" which can help you monitor everything for memory leaks to GPU load.
-
June 9th, 2009, 05:20 PM
#7
Re: What are the best debugging resources?
 Originally Posted by ninja9578
True, but it also comes with "Insruments" which can help you monitor everything for memory leaks to GPU load.
How do you monitor memory leaks? (this might help me find answer to a question I just posted)
Thanks,
sgiri
-
June 9th, 2009, 05:42 PM
#8
Re: What are the best debugging resources?
try book "advanced windows debugging" forerword and edited by Jeffrey Ritcher (author of windows via C/C++), also read kris kaspersky books about disassembling and debugging, Hacker's Debugging uncovered and ...
-
June 9th, 2009, 08:25 PM
#9
Re: What are the best debugging resources?
 Originally Posted by sgiri1981
How do you monitor memory leaks? (this might help me find answer to a question I just posted)
Thanks,
sgiri
Open the Instruments app, and navigate to the memory part of the tools library. There are three leak finder tools: Object Graph, ObjectAlloc, and Leaks, drag all of them onto the timeline, choose your app and press record.
-
June 9th, 2009, 09:04 PM
#10
Re: What are the best debugging resources?
 Originally Posted by ninja9578
Open the Instruments app, and navigate to the memory part of the tools library. There are three leak finder tools: Object Graph, ObjectAlloc, and Leaks, drag all of them onto the timeline, choose your app and press record.
Is that in Visual Studio? I dont see any such menu. (I use Visual Studio 6 (Enterprise)
I somehow havent yet developed a liking for Visual Studio. I know its a de facto environment for c++ but I havent found it very friendly for editing/navigating. (I still havent figured out how to display line numbers)
I come from Java background where I used Eclipse. oh boy! what a tool it is. I especially loved the numerous keyboard shortcuts (my favorite being ctrl+shift+p which would find the matching braces; it helps me in dealing with large functions with many loops/if-else)
sgiri
-
June 9th, 2009, 09:14 PM
#11
Re: What are the best debugging resources?
(I use Visual Studio 6 (Enterprise)
I somehow havent yet developed a liking for Visual Studio. I know its a de facto environment for c++ but I havent found it very friendly for editing/navigating. (I still havent figured out how to display line numbers)
It would help if you used a modern version. VS6 is pretty horribly outdated, not to mention that it isn't standards compliant.
-
June 9th, 2009, 09:20 PM
#12
Re: What are the best debugging resources?
 Originally Posted by sgiri1981
Is that in Visual Studio? I dont see any such menu. (I use Visual Studio 6 (Enterprise)
I somehow havent yet developed a liking for Visual Studio. I know its a de facto environment for c++ but I havent found it very friendly for editing/navigating. (I still havent figured out how to display line numbers)
I come from Java background where I used Eclipse. oh boy! what a tool it is. I especially loved the numerous keyboard shortcuts (my favorite being ctrl+shift+p which would find the matching braces; it helps me in dealing with large functions with many loops/if-else)
sgiri
Uh, no, that's XCode.
-
June 9th, 2009, 11:07 PM
#13
Re: What are the best debugging resources?
 Originally Posted by ninja9578
Open the Instruments app, and navigate to the memory part of the tools library. There are three leak finder tools: Object Graph, ObjectAlloc, and Leaks, drag all of them onto the timeline, choose your app and press record.
What is this feature ?
How to use it in Visual studio 2008 ?
Thanks.
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|