Solved

Beginner: Debugger making problems...

Posted on 2000-04-26
7
223 Views
Last Modified: 2010-05-18
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
Comment
Question by:peter_b
  • 4
  • 3
7 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 2752421
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
 

Author Comment

by:peter_b
ID: 2752470
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
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 2752568
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:peter_b
ID: 2754092
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
 
LVL 22

Expert Comment

by:nietod
ID: 2754676
>> 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
 

Author Comment

by:peter_b
ID: 2755347
yes i thank you. Nietod my skinning question why isnt anyone answering to that ?
0
 

Author Comment

by:peter_b
ID: 2755350
yes i thank you. Nietod my skinning question why isnt anyone answering to that ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now