Line numbers in stack trace

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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
 
P

pavel.orehov

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top