BUG: Can Not Attach Process to Debugger from NT Task ManagerLast reviewed: May 1, 1997Article ID: Q167798 |
The information in this article applies to:
SYMPTOMSAfter installing Visual C++ version 5.0, you may not be able to attach an active process from Windows NT Task Manager. A message box titled "Unable to Attach Debugger" with the following error message appears:
The operation could not be completed. The system cannot find the file specified. CAUSEThis happens because the registry entry in HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows NT\CurrentVersion\AeDebug has a space in the path to MSDEV.EXE. By default, the installed path to MSDEV.EXE is C:\Program Files\DevStudio\SharedIDE\BIN\.
RESOLUTIONThe resolution is to change the entry in the AeDebug registry key to:
"<install drive>\Program Files\DevStudio\SharedIDE\BIN\msdev.exe" -p %id - e %idThe quotes around the executable path and name are necessary in order to correct this problem.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\AeDebug is used to attach the Visual C++ debugger to an active process by launching MSDEV.EXE. It is also used by Just-In-Time (JIT) debugging for the same purpose. After you install Visual C++, the above registry key will have the following value:
<drive>\Program Files\DevStudio\SharedIDE\BIN\msdev.exe -p %id -e %idwhere <drive> is the drive letter where Visual C++ is installed. JIT debugging works fine with the value above. There are two ways you can attach an active process to the Visual C++ debugger. They are:
Steps to Reproduce Behavior
WARNING: Toggling the Just-in-time debugging check box in the Developer Studio Options--Debug menu tab rewrites the AeDebug registry key back to its original value. |
Keywords : kbtool vcbuglist500 WBDebug kbbuglist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |