JIT debugging - How to get the managed exception details?



JIT debugging - How to get the managed exception details?

Problem: managed application is crashing on startup with unhandled
exception - need to understand the exception

I've set windbg to be my JIT debugger for managed code
HKLM\Software\Microsoft\.NetFramework\DbgJITDebugLaunchSetting =
(DWORD)2
HKLM\Software\Microsoft\.NetFramework\DbgManagedDebugger = (string)
c:\DebuggingTools\windbg.exe -p %ld

My test app throws new ApplicationException right from the main

WinDbg does attach to the process and break

So far - so good

Now I expect to be able to understand the exception type and location

!analyze -v is telling that the exception is 80000003 - break
instruction exception
Which is not what I expected - any idea why?

!sos.CurrenExceptionName is telling that: "This is not a managed
exception or not in KERNEL32!RaiseException"

How could I get the details of the ApplicationException?

Loy

.



Relevant Pages

  • Re: Trust Issue with SqlConnection
    ... Maybe I'm missing something relating to Full Trust. ... >> hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... >> When JIT debugging is enabled, any unhandled exception ...
    (microsoft.public.dotnet.security)
  • terminal services: object in use elsewhere
    ... exception message: "The object is currently in use elsewhere" (dump below). ... To enable just in time debugging, ... When JIT debugging is enabled, ...
    (microsoft.public.vsnet.setup)
  • JIT Debugging
    ... I've just installed Visual Studio 2003. ... When an exception happen I recieve ... external error messagebox instead of JIT exception (I can't see the location ... JIT debugging in Visual Studio is activated for all program types ...
    (microsoft.public.dotnet.framework.windowsforms)
  • enabling JIT debugging??
    ... I was recently running a Windows application in a test machine and I noticed ... that an exception I received described how the message would displayed some ... do I need to take to turn JIT debugging on? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Inheriting from ApplicationException - Taboo? Jeffrey Richter says so...
    ... It does have a point, I never catch the ApplicationException, either catch ... the particular exception I'm interested or Exception, ... > "Designing exception hierarchies is tricky. ... > which there is a programmatic scenario for catching. ...
    (microsoft.public.dotnet.languages.csharp)

Loading