Link to home
Start Free TrialLog in
Avatar of peter_b
peter_b

asked on

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..
Avatar of nietod
nietod

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.)
Avatar of peter_b

ASKER

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 ?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peter_b

ASKER

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 ?
>> 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?
Avatar of peter_b

ASKER

yes i thank you. Nietod my skinning question why isnt anyone answering to that ?
Avatar of peter_b

ASKER

yes i thank you. Nietod my skinning question why isnt anyone answering to that ?