Solved

Beginner: Debugger making problems...

Posted on 2000-04-26
7
225 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

789 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