Goodlife
Goodlife

Reputation:

Debugging in Visual Studio 2008 without setting an break point

I have downloaded an open source project that I would like to use to further my ASP.NET MVC skills. The project is split up into multiple smaller projects.

When I launch the web site in debugging mode, is there a way to set the debugger to stop without having set a break point so I can step through the code and see what is happening before the view is being rendered?

Thanks

Upvotes: 1

Views: 170

Answers (3)

Dirk Vollmar
Dirk Vollmar

Reputation: 176279

You can also use one of the following statements:

System.Diagnostics.Debugger.Launch();

This will launch and attach a debugger to your running process.

System.Diagnostics.Debugger.Break();

This signals a breakpoint to an already attached debugger.

Upvotes: 3

Cătălin Pitiș
Cătălin Pitiș

Reputation: 14327

While in debug mode, you can press the pause button from the debug bar. It will break the execution at the current execution point. You can then continue the execution step by step for current thread, or set breakpoints, etc.

Upvotes: 1

Gavin Miller
Gavin Miller

Reputation: 43875

Under the Debug menu choose Step Into - It will launch the debugger to the first line of code. Standard Shortcut is F11

Upvotes: 3

Related Questions