I have a .NET 4.0 console application running on a production server. The app is run on an ad-hoc basis, is compiled as a debug build and all debug symbols are sent up to the server with the exe.
When an exception is raised in the app, I expect that it will die ungracefully and print the stack to the console like any old console app should. Instead, the behavior I see is this:
- The JIT debugger window appears, asking to debug.
- If I say “yes”, it fires up some extremely limited version of VS 2005. I’m dumped into assembly language and cannot see the source code or the name of the file. This is the case for all levels of the stack trace.
- If I say “no”, no information is written to the console at all.
I’ve tried running this in both a powershell shell and a traditional cmd console with the same effect.
The server runs ASP.NET 4.0 and has no trouble returning those errors to the browser.
What I desire is to simply see the true error and the stack printed to the console without the JIT popping up. Aside from a global catch and write, what are my options?
1 Answer