Advertisement

07.27.2006 at 06:50AM PDT, ID: 21933932
[x]
Attachment Details

Getting debug information for a release build troubles

Asked by gunn in Microsoft Visual C++.Net

Tags: contain, debugging, does, information

This is a question for a C++ application (not "managed C++) using VS .NET 2003 IDE.

I have followed many instructions on generating debug information for a release build. But whatever I do, it doesn't seem to work. I've followed the steps from:
http://www.cygnus-software.com/papers/release_debugging.html
and
http://www.codeproject.com/debug/XCrashReportPt1.asp?print=true

The lastest instructions I found were from MSDN:
http://support.microsoft.com/kb/291585/
"How to Create Debug Symbols for a Visual C++ Application"

which is a bit different than the other's previous to that I had read (those other articles never mentioned VS.NET)

The executable project depends on linking with many static libraries that are included within the solution. I've changed all of their settings to this:

Compiler:
Enable /Z7 for Visual C++ .NET (General section->Debug Info Format:C7 compatible)
Enable /O2 (Optimization section->Maximize Speed)

Linker:
Select /INCREMENTAL:NO (General section)
Select /DEBUG:Yes (Debugging section)
Select /OPT:REF (Optimization section->References)
Selecdt /OPT:ICF (Optimization section->Enable COMDAT Fielding)

I then cleaned the solution and rebuilt everything. But when I then go to File->Open Project and load the executable file, and then once loaded, hit F11 to "Step Into", I get the following popup dialog error message:

"'Castle.exe' does not contain debugging information. (No symbols loaded.) Click OK to debug anyway."

Previous to these settings, I was setting the Debug Information Format to "Program Database".  I got the same error. But in the MSDN article mentioned above, it specifically says to Enable 'C7 Compatible' for Visual C++ .NET and 'Program Database' for Visual C++ 6.0 ....

Any more ideas on why my symbols are not being found?

Oh, and for whatever reason, I am still getting a .pdb file generated in the same directory as the executable file...even though I have 'C7 compatible' specified...

Thanks,
Start Free Trial
 
 
[+][-]07.27.2006 at 07:26AM PDT, ID: 17192990

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.27.2006 at 08:06AM PDT, ID: 17193359

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 08:25AM PDT, ID: 17193556

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 09:03AM PDT, ID: 17194007

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 10:31AM PDT, ID: 17194790

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 10:37AM PDT, ID: 17194857

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C++.Net
Tags: contain, debugging, does, information
Sign Up Now!
Solution Provided By: DanRollins
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.27.2006 at 01:36PM PDT, ID: 17196352

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 01:39PM PDT, ID: 17196375

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2006 at 02:22PM PDT, ID: 17196707

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32