Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Visual Studio, how do I debug a project without building it

This is for Visual Studio 2008.

I have Tools|Projects and Solutions|Build and Run|On Run, when projects are out of date set to Always build because that is what I usually want. However, there are some times (when I am examining historic versions in version control) where I want to skip the build process. Is there a magic keystroke that will override the build step for exactly one debugging session so I don't have to change the setting and change it back?

like image 712
seeker Avatar asked Nov 17 '11 23:11

seeker


People also ask

How do I debug without making Visual Studio?

Please right click solution name and go to Properties -> Configuration Properties -> Configuration , clear the Build checkbox of the project.

How do I debug existing project in Visual Studio?

Just go to File->Open->Project/Solution and browse to the .exe file. Like you would if it was a . sln file. Visual Studio will then open that EXE as a project.

How do you exclude a project from a building?

On the menu bar, choose Build > Configuration Manager. In the Project contexts table, locate the project you want to exclude from the build. In the Build column for the project, clear the check box. Choose the Close button, and then rebuild the solution.

What is the difference between build and debug?

Debug is the act of finding out where in the code the application is going wrong (debug = get rid of bugs.) In the context of an IDE, compile (Build in Visual Studio) just builds the code, debug (Run in Visual Studio) compiles the code, launches it and attaches a debugger.


1 Answers

Please right click solution name and go to Properties -> Configuration Properties -> Configuration, clear the Build checkbox of the project.

like image 157
skyde Avatar answered Sep 30 '22 14:09

skyde