Re-Repost: How do we define the JIT debugger in registry???

J

José Joye

I'm trying to define on my production machine the JIT debugger to catch a
bug that only appear there.... :-((

I googled and had a look to MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht
ml/cpconenablingjit-attachdebugging.asp).

I'm still more than confused!

Here are my settings:

HKLM\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger\DbgJITDebugLaunchSe
tting = 2
HKLM\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger\DbgManagedDebugger\
(default) = "C:\Program Files\Common Files\Microsoft
Shared\VS7Debug\vs7jit.exe" PID %d APPDOM %d EXTEXT "%s" EVTHDL %d

I suspect my setting to be false. However, I could not find any example.

When the service crashes, I have the pop-up windows asking to press cancel
for debug. However, it has no effect


José
 
G

Gabriele G. Ponti

José

What's your value for the key DbgManagedDebugger under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\ ?

Gabriele
 
J

José Joye

As stated in my post, setting are:

HKLM\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger\DbgJITDebugLaunchSe
tting = 2
HKLM\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger\DbgManagedDebugger\
(default) = "C:\Program Files\Common Files\Microsoft
Shared\VS7Debug\vs7jit.exe" PID %d APPDOM %d EXTEXT "%s" EVTHDL %d


José
 
G

Gabriele G. Ponti

José,

I'm talking about
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger, not
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger\(Defa
ult).

Gabriele
 
J

José Joye

I see!

Currently I have nothing...
What should be in and what does this value means compared to the key having
the same name?

José
 
G

Gabriele G. Ponti

José,

I'm not really sure what's the purpose of that, and the documentation is not
very clear about this. However I remember reading how to setup the JIT
debugger in Jason Bock's "CIL Programming: Under the Hood of .NET"
(http://www.apress.com/book/bookDisplay.html?bID=88), and then I checked a
couple of computers to see how is currently configured.

In my case I have:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"DbgJITDebugLaunchSetting"=dword:00000002
"DbgManagedDebugger"="\"D:\\Program Files\\Common Files\\Microsoft
Shared\\VS7Debug\\vs7jit.exe\" PID %d APPDOM %d EXTEXT \"%s\" EVTHDL %d"
"InstallRoot"="D:\\WINDOWS\\Microsoft.NET\\Framework\\"
"sdkInstallRootv1.1"="D:\\Program Files\\Microsoft Visual Studio .NET
2003\\SDK\\v1.1\\"
"PrevDbgJITDebugLaunchSetting"=dword:00000000
"PrevManagedDebugger"="D:\\Program Files\\Common Files\\Microsoft
Shared\\VS7Debug\\vs7jit.exe PID %d APPDOM %d EXTEXT \"%s\" EVTHDL %d"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger]
@="cordbg.exe !a 0x%x"

I hope this helps.

Gabriele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top