Discussion:
Can not enable JIT debugging
(too old to reply)
Yuan Ze
2004-05-11 08:44:42 UTC
Permalink
I can't enable JIT debugging for an application written in C#. This app
depends on some Mixed Mode managed C++ Libs. When exceptions generated in
it, no JIT debugger invoked. Only the default dialog box shows up. I have
enabled JIT debugging for window forms in machine.config and app.exe.config,
but it doesn't work. Even if I debug this app in IDE, the "break" button is
unavailable. But pure C# applications have no problems.

Any help would be great appreciated.
Gregg Miskelly
2004-05-17 17:15:24 UTC
Permalink
What do you mean by 'the default dialog'? Are you crashing in managed code
or native code?

If managed code, what are these registry keys set to? Also, are you crashing
on the main thread?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgJITDebugLaunchSetting

If native code, what is this registry key set to?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\Debugger
--
Gregg Miskelly
http://blogs.msdn.com/greggm

This posting is provided "AS IS", with no warranties, and confers no rights.
Post by Yuan Ze
I can't enable JIT debugging for an application written in C#. This app
depends on some Mixed Mode managed C++ Libs. When exceptions generated in
it, no JIT debugger invoked. Only the default dialog box shows up. I have
enabled JIT debugging for window forms in machine.config and
app.exe.config,
Post by Yuan Ze
but it doesn't work. Even if I debug this app in IDE, the "break" button is
unavailable. But pure C# applications have no problems.
Any help would be great appreciated.
Yuan Ze
2004-05-31 09:24:50 UTC
Permalink
Thank you for your help.

"the default dialog" is the dialog displays the stack trace information when
exceptions generated. I think this dialog is created by cordbg.exe. To test
my code, I managed to throw exceptions in C#. So the crashing is in managed
code.

The values under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\ are
set to
DbgJITDebugLaunchSetting 2
DbgManagedDebugger ...vs7jit.exe...
The registry key DbgManagedDebugger is set to cordbg.exe. The
AeDebug\Debugger is set to ..vs7jit.exe...
Post by Gregg Miskelly
What do you mean by 'the default dialog'? Are you crashing in managed code
or native code?
If managed code, what are these registry keys set to? Also, are you crashing
on the main thread?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgJITDebugLaunchSetting
Post by Gregg Miskelly
If native code, what is this registry key set to?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\Debugger
--
Gregg Miskelly
http://blogs.msdn.com/greggm
Loading...