Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio: attach debugger without starting web debugging

I have a visual studio solution with a half dozen web application projects. I often want to attach the debugger to a process. When I do this, visual studio always wants to start up cassini or IIS express or do something to run the web applications in the solution. Is there a way I can skip that, so when attaching to a process visual studio does not try to start the web applications in the current solution?

like image 290
Frank Schwieterman Avatar asked Nov 01 '11 00:11

Frank Schwieterman


People also ask

How do you attach a debugger to a process in Visual Studio?

You can attach the Visual Studio debugger to a running process on a local or remote computer. After the process is running, select Debug > Attach to Process or press Ctrl+Alt+p in Visual Studio, and use the Attach to Process dialog to attach the debugger to the process.

Why does Visual Studio say attach instead of run?

You need to create a new Python related project(or open a Python project) in Visual Studio to debug your project which includes the . py file and python codes. Just open a single . py file is not enough to debug the project in Visual Studio, so you will see the “Start” changed to “Attach…”.

How do I run Visual Studio without debugging?

'Start without Debugging (Ctrl + F5)'. In Visual Studio, we have seen these two menu items one after other under the Debug menu.

How do I fix unable to start debugging on web server?

Restart your Application Pool. Check that your Web Application folder has the right permissions. Make sure that you give IIS_IUSRS, IUSR, or the specific user associated with the Application Pool read and execute rights for the Web Application folder. Fix the issue and restart your Application Pool.


1 Answers

On the project properties, there's a setting called "Development Server" -> "Always Start When Debugging." Might be worth a shot.

enter image description here

like image 144
Tom Lianza Avatar answered Oct 12 '22 09:10

Tom Lianza