WSchwa

I posted a similar question in the C++ General, but thought this would be a better place for this question...

While single-stepping through my program using VC2005 (SP1) it takes several seconds to perform each and every step. The caret moves to the next line immediately, but the mouse is frozen for many seconds

My solution consists of two projects... A DLL with about 120 classes and an EXE with 5 classes. All code is native code in C++.

My OS and Computer is Windows 2000 SP4. Core 2 Duo, with 2 Gig RAM, and dozens of Gigs of Hard Drive space.

This problem began occuring after upgrading many hardware components... Processor, Motherboard, video card, power supply, RAM, an extra hard drive, and a TV card were all changed or added. After these components were installed, I reinstalled Windows 2000 from scratch.

Here are a few things that I've tried...

- I have downloaded all Windows symbols and instaled them properly.

- I have uninstalled and reinstalled VC2005

- I have cleared out all of the projects temporary files. (.ncb, .pdb, bsc, and cleaned.)

- I have tried Checking the "Load DLL exports" box.

- I have verified that the long delay happens on even the simplest of lines of code such as int i = 0;

- I have created a simple console app - "hello world" type and the problem does NOT occur in that simple app. Unfortunately I have to build more complex apps.

- I have also installed the exact same VC2005 SP1, and Windows 2000 SP4 onto a very slow P3-600 and there is NO problem single stepping on that machine.

I am wondering if this problem is related to the Core 2 Duo

I need a solution to this problem badly. Please help!

Thanks!



Re: Visual Studio Debugger Very Slow Single-Stepping

Liz - MSFT

Hi WSchwa,

Did you run the same solution on the P3-600 that ran slow on the Core 2 Duo

Liz






Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

Yes. Everything was identical. Same vs2005, same windows 2000, same solution and projects.



Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

In trying to fix this, a local computer store told me that there is a patch from Microsoft for (or relating to) Core 2 Duo that addresses some software issues. Does anyone know of such a patch (Note that I have applied VS2005 SP1 already.)



Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

One more bit of interesting info...

If, instead of breaking into the middle of the program, I break on the first statement in the main function, and then single-step all the way, there is not a freeze at all and it is very fast. I can single step all the way through the other break point that I was breaking at where the problem occurs. Of course, this isn't practical as a solution and I still need a much better one.





Re: Visual Studio Debugger Very Slow Single-Stepping

Liz - MSFT

I am not aware of any issues specific to debugging or slow stepping and the Core 2 Duo chip. We did fix a problem with profiling on the Core 2 Duo. This fix was release in the VS2005 SP1.

Where are you setting your breakpoint when you are seeing the slow stepping behavior

Liz






Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

The breakpoint (with slow stepping) is very early during the initialization of the application.



Re: Visual Studio Debugger Very Slow Single-Stepping

Oleg Starodumov

Will the same problem happen if you start a new instance of VS, open your .exe file (using File | Open | Project\Solution) and start debugging it



Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

I tried it and yes, the same behavior occurs under that scenario. Thanks for considering this problem.



Re: Visual Studio Debugger Very Slow Single-Stepping

Liz - MSFT

When you step what is the CPU usage What windows do you have open in the debugger




Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

CPU usage is a 1 and 2%. Nothing else is running.



Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

Well, no solution yet, but I think I can rule out the question of whether or not this is related to Core 2 Duo. I bought a single-core processor and tried it and there was no difference. (Shows you how desparate I am to fix this.)

I also, removed as much hardware as possible leaving only a single hard drive, DVD drive, and video card, with no differences.





Re: Visual Studio Debugger Very Slow Single-Stepping

Oleg Starodumov

Do you have any security-related applications on this system Or other applications that e.g. inject a dll into other processes Try to disable such apps - will it change something



Re: Visual Studio Debugger Very Slow Single-Stepping

WSchwa

No. I don't think so. The problem still exists with no firewall, no anti-virus, and no unusual utilities. And I am pretty sure I know the type of things you are referring to. My computer is clean, and the OS was just installed about a month ago. I have openVPN but it doesn't matter if that is running or not.



Re: Visual Studio Debugger Very Slow Single-Stepping

Liz - MSFT

WSchwa,

You stated that you "cleared out" the .ncb and .pdb files. Try clearing out your .suo file. You might want to rename this file since it contains information about your solution like breakpoints, execption settings,... Also, confirm that your symbol paths are correct.

Liz