Solved

Beginner: Debugger making problems...

Posted on 2000-04-26
7
222 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

758 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

18 Experts available now in Live!

Get 1:1 Help Now