Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I stop JIT debugger stepping in on a crashing wcf service?

Tags:

c#

.net

wcf

jit

I have a self hosted wcf web service with an UnhandledExceptionEventHandler logging any unhandled exceptions.. which happen frequently enough as I am engaged with a 3rd party technology provider who are a little buggy to be polite...

My question is; can I stop the JIT debugger being invoked after I've processed the unhandled exception? I'm doing as much as I can with the unhandled exception; I know the service is bombing but the fact that it bombed is recorded in our events db. Is there a compile switch I can set??

like image 956
Dave Lawrence Avatar asked May 22 '12 14:05

Dave Lawrence


People also ask

When JIT debugging is enabled any unhandled exception will be sent to the JIT debugger?

The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

How do I fix No registered JIT debugger was specified?

Please disable your JIT debugging in your side. Note: You need to run your VS as the admin. One possible reason is that it has the crashed or unhanded exception in your side which leads to pop-up the JIT debugging. So you need to disable JIT debugging and find the real reason in your side.


1 Answers

According to MSDN you can enable/disable JIT debugging through the Options dialog in Visual Studio - http://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx There seems to be also a registry hack that does the same. HTH

like image 155
Eis Karlsson Avatar answered Oct 03 '22 15:10

Eis Karlsson