'How do I activate/use JIT-Debugging?
I made a game with monogame (version 3.7.1) in C# and tried to publish it in Visual Studio 2017. The publishing worked fine but after that, I tried to execute the setup.exe file but unfortunately, I get a NullReferenceException the problem is I don't know how to debug and find out what's causing the error.
At the end, it states you can activate debugging by activating JIT-Debugging. I already have done that by writing the line:
< system.windows.forms jitDebugging="true" />
Into the machine.config file under the configuration, but now I don't know how to use it because when I run the .exe it stills gives me the NullReferenceException error and I didn't find any clue on the internet how to use it.
Solution 1:[1]
The steps for setting up the JIT debugger in VS are over at: https://docs.microsoft.com/en-us/visualstudio/debugger/debug-using-the-just-in-time-debugger?view=vs-2017
The JIT debugger will pop for any unhandled .NET exception in any .NET app. Of course to debug an app you will need to have source and symbols, and debugging retail/release bits is more difficult.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andy Sterland |
