Debug Symbol Files

  • Thread starter Thread starter Bob Day
  • Start date Start date
B

Bob Day

VS 2003, VB.Net, SQL Native...

I am running in debug mode trying to figure out how to turn on Debug Symbols
to get the line number for exception reporting. I have posted this before
(deep in a threaded conversation), and never got a response.

The only thing I could find on "Program Debug Symbols" in help was:
"To access the Debug Symbol Files property page, right-click on your
Solution in Solution Explorer and choose Properties from the shortcut menu.
Expand the Common Properties folder and click the Debug Symbol Files page. "

However, the "Debug Symbol Files" does not appear as an option as it says it
should above. I presume that means I some how heave it turned off. I don't
see where to turn it on. Where do you turn it on?

Please advise. Thanks for your help.

Bob Day
 
Are you certain you're clicking on the Solution entry, and not the Project
entry in the Solution Explorer? It should be there (I have not changed any
default settings and do see the property pages for Debug Source Files and
Debug Symbol Files.

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026?  If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.
 
You are right, no I see the options. I am trying to solve below, but seeing
the options and reading the help didn't make it clear to me what I am
suppose to do. What are the paths to the Program Debug symbols to make them
available to the application?

However, using the code you suggest below in various situations always
returns a line number of zero

Do you run your application in Debug mode? 'GetFileLineNumber' is only
available if Program Debug symbols are available for the application

Thanks

Bob
 
I'm confused by your question, and the inclusion of this text:

========
However, using the code you suggest below in various situations always
returns a line number of zero

Do you run your application in Debug mode? 'GetFileLineNumber' is only
available if Program Debug symbols are available for the application

=====

Please clarify.

Steven Bras, MCSD
Microsoft Developer Support/Data Access Technologies

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft Security Announcement: Have you installed the patch for Microsoft
Security Bulletin MS03-026?  If not Microsoft strongly advises you to
review the information at the following link regarding Microsoft Security
Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026.
 
when debugging an application, the following code always returns a line
number of zeroIt was then suggested that is the case because my "debug Symbol files" must
be active to get an accurate line number, so they must not be. How do I
make them active?

Or, to start completely over, my original question was how to capture the
line number where I am throwing an exception so I can save the line number
to trace. The above code looks logical, it just always gives 0 for the line
number.

Thanks!

Bob Day
 
Back
Top