The "Attach to process" list is empty in Visual C++ debugger

Article translations Article translations
Article ID: 235434
Expand all | Collapse all

Symptoms

In the debugger, the "Attach to process" list is empty.

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

Cause

The "Attach to process" list is populated using a performance counter API. Depending on the environment and the installed performance counter DLLs, the code to populate the list may fail.

This bug only affects the "Attach to process" list when running on Windows NT and Windows 2000.

Resolution

Resolution 1

You should be able to attach to the process using Task Manager:
  1. Enable just-in-time debugging (JIT):
    1. In Visual C++, on the Tools menu, click Options.
    2. On the Debug tab, make sure that Just-in-time debugging is selected.
  2. Run Task Manager and select the process to attach to. Right-click and select Debug.

Resolution 2

  1. Run Task Manager and get the process ID for the process you want to debug.
  2. At a command prompt enter the following:msdev -p <processid>
This will start Visual C++ and will attach to the process specified.

Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the latest service pack for Visual Studio 6.0.

For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed
To download the latest Visual Studio service pack, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

More information

If the steps for Resolution 2 do not help, and if Resolution 1 is unsatisfactory, check the version of the operating system. Even though this bug is known to occur on Windows NT 4.0 as well Windows 2000, Resolution 2 may not work on Windows 2000. You may need to go back to a released version of Windows NT.

Properties

Article ID: 235434 - Last Review: June 19, 2014 - Revision: 5.0
Keywords: 
kbtshoot kbbug kbdebug kbfix kbide kbvs600sp4fix kbvs600sp5fix KB235434

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com