Debugging Tips:

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2006
Posts: 2,564
Reputation: mattyd is an unknown quantity at this point 
Solved Threads: 1
Featured Poster
mattyd's Avatar
mattyd mattyd is offline Offline
Posting Maven

Debugging Tips:

 
0
  #1
Nov 8th, 2006
Hello:

I am seeking a few tips in regards to debugging: I have been using Visual C++ 2005 Express Edition for the last few months but am not very comfortable with its debugging platform. I simply wish to step through a section of the program via breakpoints and view variable values; How can I set this to do so, show a variable's value-- a watch? At this point, I see no visible output regarding breakpoint findings.

I keep getting a reference to "ostream" and a display of its contents-- this is not helpful for me at this point (too much information, I believe) and I honestly cannot make much of the ostream coding. I am not sure why the compiler is doing this. There must be an important reason (I wish to understand this, too).

Thank-you in advance for any help.

sharky_machine
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Debugging Tips:

 
0
  #2
Nov 8th, 2006
This thread most probably discusses your problem. Go through it and see if it has the solution.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,564
Reputation: mattyd is an unknown quantity at this point 
Solved Threads: 1
Featured Poster
mattyd's Avatar
mattyd mattyd is offline Offline
Posting Maven

Re: Debugging Tips:

 
0
  #3
Nov 8th, 2006
Originally Posted by WolfPack View Post
This thread most probably discusses your problem. Go through it and see if it has the solution.
WolfPack:

Thank-you for you reply. I tried a few things from the suggested thread. In reference to the anti-virus consideration-- that sounds unusual-- I did not try it, but I appreciate the info.

Basically I found out that by simply rolling over the variable the "datatip" cursor-tooltip shows me the value of the variable (and quite a strange value it is, maybe "garbage", which does not make sense with what I am doing)

As far as ostream goes, I just ignore it and try to work around it

Thanks again.

sharky_machine
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Debugging Tips:

 
0
  #4
Nov 8th, 2006
Well, then that means you can pause the program when it hits the breakpoint. So I guess this should do. Just google for "Visual C++ Debugging" or something on that lines, and you should get a load of material.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 421
Reputation: JoBe is on a distinguished road 
Solved Threads: 4
JoBe's Avatar
JoBe JoBe is offline Offline
Posting Pro in Training

Re: Debugging Tips:

 
0
  #5
Nov 9th, 2006
<<"In reference to the anti-virus consideration-- that sounds unusual-- I did not try it, but I appreciate the info."

>>I know it sounds unusual, but, it did solve my problem.

By the way, thanks for that link Wolfpack, seems I didn't use the proper search words for that kind of tutorial
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC