Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Beginner: Debugger making problems...

win32, Visual C++ 6

I am trying to use the debugger. I have some problems with it.
1. I cannot set breakpoints. Well i can set them but they get disabled when running the debugger. Did i misconfigure my project ?
2. When running the debugger i see the disassembled machinecode that is not very interesting to me (+ of course the other windows. I would like to move from line to line in my code as it is running. Is this possible ?
3. What are symbols ?

thanks for any help..
0
peter_b
Asked:
peter_b
  • 4
  • 3
1 Solution
 
nietodCommented:
Are you builiding a debug version?

Not sure?  
Go to "build" menu
"Set Active Configuration" item
and in the dialgo that appears highlight a debug configuration.  

(Alternately go to the project settings and make sure that debug symbols are being included in the current configuration.)
0
 
peter_bAuthor Commented:
you were right i was in release mode. The breakpoints stay in place now. The symbolinformations are still missing according otput window but i cannot find the debug symbols in the current configuration. What are they for ?
0
 
nietodCommented:
Did you recompile after changing to debug mode?

What error messages are you getting?

in the project settings dialog, with the debug version selected (on the left), in the "link" tab page, in the "general" category, do you have "generate debug info" selected?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
peter_bAuthor Commented:
yes i did recompile all. btw debugger halts on breakpoints now.
generate debug info, is selected.
german error message:
LGMOUSHK.DLL" wurde geladen. Es wurden keine entsprechenden Symbolinformationen gefunden.

meaning no symbolinformation found (this message for a lot of dll s). That was part 3 of my question, what are symbols ?
0
 
nietodCommented:
>> symbolinformation found (this message for a lot of dll s).
Are these DLLs you've written?  or the OS DLLs?   if it sthings like the USER32, KERNAL32, etc these are OS DLLS and you won't have symbols for them unless you've installed the debug version of the OS from MSDN.  And you can debug pretty well these symbols.  (I do.)

>> That was part 3 of my question,
>> what are symbols ?
"symbolic information" about the program.  i.e when looking at at variable, rather than seeing some memory address and the hex value stored in that address, the symbolic inforrmation gives you the name of the varaible and its type and allows the debuger to display the information in a manner that is useful for that type of data.  The also applies to functions, the symbolic information includes the function's name and the parameter names and the parameter types etc.   The symbolic information is what allows the debugger to show you what the computer is doing in a hihg-level way.  i.e. show you what is happening in terms of C/C++ programming, rather than showing you what is happenign in assembly.

Now you should have symbols for your program.  You should be able to step into your program and see variables, parameter, and functions with their proper names and current values displayed in a (reasonable) way.  Do you?
0
 
peter_bAuthor Commented:
yes i thank you. Nietod my skinning question why isnt anyone answering to that ?
0
 
peter_bAuthor Commented:
yes i thank you. Nietod my skinning question why isnt anyone answering to that ?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now