Line numbers in stack trace

  • Thread starter Thread starter pavel.orehov
  • Start date Start date
P

pavel.orehov

Hi,

I am using Environment.StackTrace to print the stack trace to the log
when I have any exceptions in my application.

When I work in development environment I see the line numbers in the
trace without any problems.

However when an application runs at the production PC deployed with
VS2005 setup I don't see line numbers in the stack trace.

So I wanted to ask what I have to deploy or whatever I need to do to be
able to see the line numbers in stack trace on production PC.

I am running debug versions of all DLLs.

Thanks,
Pavel
 
Hi,


Hi,

I am using Environment.StackTrace to print the stack trace to the log
when I have any exceptions in my application.

Then you better use Exception.StackTrace together with Exception.Message
When I work in development environment I see the line numbers in the
trace without any problems.

However when an application runs at the production PC deployed with
VS2005 setup I don't see line numbers in the stack trace.

I do not remember if a setup project include by default the .pdb files,
these files are needed for the line number
So I wanted to ask what I have to deploy or whatever I need to do to be
able to see the line numbers in stack trace on production PC.

Check if the deployed version has the .pdb files if not include them
 
Hi,

I have tried to put the *.pdb files after deployment (setup) with the
dlls, but this did not solve the problem.

You mean that I should deploy my *.pdb files with the setup ? What's
the difference ?

Thanks,
Pavel
 
Back
Top