Can I use Visual Studio to trace/debug an executable instead of using Windbg?

deleyd used Ask the Experts™
I've been using Windbg to trace executables for which I do not have the source code. I recently got Visual Studio 2010. Is there a way I can use Visual Studio 2010 instead of Windbg to trace/debug an executable?

I tried running Windows Calculator, then in VS doing DEBUG -> ATTACH TO PROCESS, select CALC.EXE, it cheerfully attaches, supposedly, but shows nothing. Disassembly window says, "Disassembly cannot be displayed in run mode."

Am I stuck using Windbg?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You can't display anything while it is running.  You can pause it by selecting Debug/Break All.

On calculator, it won't show you much but you can see the call stack.
deleydSoftware Engineer


Debug/Break All. That's the ticket.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial