Solved

missing debug information

Posted on 2002-04-15
13
421 Views
Last Modified: 2013-11-20
Hello,

I hava a workspace with several project (*.dsp), one for exe generation, the other for libaries.

When i am in debug session, i sometimes lose debugging information for some variables and instead of name's function in the stack, i have the name of my application.

The only i have found to solve this problem is to rebuild all my project (about 1 hour....). Does anyone know how i can solve the problem?

thank you
rgrand

0
Comment
Question by:rgrand
  • 5
  • 5
  • 3
13 Comments
 

Author Comment

by:rgrand
ID: 6942346
when beginning debug session it also asks me for vc60.pdb in find symbols dialog box. But this file exists...
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 6942505
2 rgrand
>it also asks me for vc60.pdb in find symbols dialog box. But this file exists
vc60.pdb generated for each project. It is possible that
you have a wrong file generated from other build. We have the same problem when we mixed libs builded on different computers (With other path).
0
 

Author Comment

by:rgrand
ID: 6942557
unfortunatly libs are builded on same computer, so same path.

Even if I delete this file and recreate it, i have the problem.
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.

 
LVL 49

Expert Comment

by:DanRollins
ID: 6942982
>>the other for libaries.

I think these may be DLLs.  If so, then when you run the Debug version of the EXE, you may actually be accessing a DLL that was built in a previous Release build (it will have no debug info).  

One way to tell:  Search your entire computer for the filename(s) of the DLL(s), and delete each and every one of them and then rebuild.  

Another way: You can watch the Debug panel of the output window to learn where the system found that copy of the DLL ("Loading c:\winnt\yikes.dll..." )

-- Dan
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 6943197
2 rgrand
Could you look after starting debug mode into "Output/Debug" and try to find messages like this "Loaded 'D:\WINNT\System32\ntdll.dll', no matching symbolic information found." but for your project related.
Is it possible to localize part of your project in which you can't debug variables?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6943252
Hi AlexNek, you have repeated the last part of my post, as if it were your own suggestion.
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 6943318
Dear DanRollins, I'm sorry that I not read your message carefully. But I have the other idea to find a message about missing PDB file.
Are you really think that I still your own Idea? For which reason?
PS:Sorry for off topic.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6943480
>>I not read your message carefully
That's all I'm pointing out.  It is best to carefully review previous posts.
-- Dan
0
 

Author Comment

by:rgrand
ID: 6944138
In fact i use only lib, no dll, and all my lib are builded in debug.

i think i have not been clear enough.

when i debug in the same function some debbugging information are missing and after a rebuild all these missing information reappear...

I am going to check for the message
0
 

Author Comment

by:rgrand
ID: 6944244
more explanations:

I make a 'rebuild all' and i have all the debugging information

I rebuild only one dsp (for one lib file), ans i lose some of the debugging information. vc60.pdb ans vc60.idb have changed. How can i rebuilded these files correctly?

rgrand
0
 
LVL 16

Accepted Solution

by:
AlexNek earned 300 total points
ID: 6945267
2 rgrand
vc60.pdb builded automatically by compiler and it "must be" correct. This file collect information concerning types and any other information stored by linker in Project.pdb (AFAIK).
Are you sure that you have exact one vc60.pdb for each project in the workspace? Is error come when you rebuild any project?
0
 

Author Comment

by:rgrand
ID: 6945300
AlexNek,

that was exactly my problem. I had a same vc60.pdb for every project. I have rename each pdb for each project.

The problem is resolved. In fact I have found the solution before reading your comment. As it is the solution I used, you get the points.

thanks for all
rgrand
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 6946212
2 rgrand
I'm glag to help you in my second day here.
>I had a same vc60.pdb for every project. I have rename each pdb...
Thank you too. I forgot about /Fd switch :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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