Line numbers in Release exceptions

  • Thread starter Thread starter Nick Bunton
  • Start date Start date
N

Nick Bunton

Does anyone know how I can get the line number of an exception when
running in the Release configuration. I have tried the InnerException
and the StackTrace of the Exception object but cannt seem to find line
numbers.

Thanks

Nick
 
Hi Nick,

You should enable Debug Info for the release version to get the line
numbers.
 
And If I'm correct, you should also provide the pdb together with the
dll/exe assembly

José
Dmitriy Lapshin said:
Hi Nick,

You should enable Debug Info for the release version to get the line
numbers.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Nick Bunton said:
Does anyone know how I can get the line number of an exception when
running in the Release configuration. I have tried the InnerException
and the StackTrace of the Exception object but cannt seem to find line
numbers.

Thanks

Nick
 
This might also be required. Thanks for the amendment Jose!

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

José Joye said:
And If I'm correct, you should also provide the pdb together with the
dll/exe assembly

José
Dmitriy Lapshin said:
Hi Nick,

You should enable Debug Info for the release version to get the line
numbers.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Nick Bunton said:
Does anyone know how I can get the line number of an exception when
running in the Release configuration. I have tried the InnerException
and the StackTrace of the Exception object but cannt seem to find line
numbers.

Thanks

Nick
 

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

Back
Top