debug Symbol files

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

Bob Day

This is a few week old post, which I never got a reply to, so I am reposting
it.
-------------------------------------------------------------------
when debugging an application, the following code always returns a line
number of zeroIt was then suggested that this 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
 
Hi Bob,

Here is sample you may have a try.
Create a new console application and copy and paste the example below to
see if this works for you.
StackFrame Class Example
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdiagnosticsstackframeclasstopic.asp

Or you can modidy your code simple as long as it can reproduce the problem
and post here for me to reproduce the problem.
I look forward to hearing from you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
 
Back
Top