K0ICHI
K0ICHI

Reputation: 192

Stop debugger on current line of code being executed in Visual C# Express 2010

So my program seems to be stuck in a loop somewhere. Unfortunately it doesn't run out of memory or overflow the stack, so it just keeps running. To figure out what it's doing I could of course start putting in break points at random places in the code, but I'm hoping there's a more efficient way of doing it.

I would like to simply stop the debugger at the line of code that is currently being executed, but I can't find a command for this in VS. I've searched for how to do it and found this post, but it seems this was a feature in VS 2008 and not in 2010!?

Does anybody know how I can do this? Thanks!

Upvotes: 2

Views: 4273

Answers (1)

mgr32
mgr32

Reputation: 386

You're right that you're looking for the pause button (command 'Break All' in 'Debug' category), which is a feature of VS2010. If you can't see it, it might be IDE profile issue as described here, or if you're on VS2010 express here.

Upvotes: 3

Related Questions