-2

I have a Visual Studio App (Windows.Forms) that build a release .exe-App. If I run this exe an exception occurs, I only can see it in the windows log, nothing more happens.

But I would like to see the JIT Exception Window. Can I activate this somehow in VS?

Im asking for a general "If any exception at runtime - show the JIT Debugger"-switch. Is something like this available?

FCin
  • 3,804
  • 4
  • 20
  • 49
hausl
  • 160
  • 16
  • 1
    Why not run in debug mode? – ProgrammingLlama Oct 22 '18 at 08:57
  • 1
    Change build type to Debug and hit F5 – Renatas M. Oct 22 '18 at 09:02
  • Because its an released exe thats in use. An exception - as the name says - can happen on many reasons without catch every possibility. just want to see if any error happens in productive use. – hausl Oct 22 '18 at 09:13
  • WPF, UWP, Forms, ..... what is it you are using? Also, what kind of exception is logged. This is lacking way too many informations – X39 Oct 22 '18 at 09:51
  • edited post above. Thank you! – hausl Oct 22 '18 at 10:41
  • [Debugging in .NET in Release mode](https://stackoverflow.com/q/11054183/3110834). – Reza Aghaei Oct 22 '18 at 11:42
  • Sorry, also dont work. If an Exception occurs the Programm just dont start an no message, PopUp, JIT.. nothing. Only if taking a look in the windows console shows an ErrorMessage. I want this Message in a JIT-Error-PopUp as it was in the former Versions from Visual Basic .net. But if its not possible again, i will take it as it is. – hausl Oct 22 '18 at 12:55

1 Answers1

0

Did it now like here shown.

http://www.csharp-examples.net/catching-unhandled-exceptions/

Instead of logging made an MessageBox with the Exception Message und Application.Exit(). Works exactly as i like it to have.

hausl
  • 160
  • 16