Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I attach to the w3wp.exe process when I turn off Just My Code in VS2010?

I'm using VS2010 Beta 2 and I turned on .NET Framework source stepping, so I had to disable 'Just My Code'. But now the w3wp.exe process doesn't show up in the list of processes I can attach to. I've got both show all processes boxes ticked. Is this a bug or am I missing something?

like image 327
Glenn Slaven Avatar asked Dec 31 '09 01:12

Glenn Slaven


People also ask

Why is w3wp exe not running?

Answers. The w3wp.exe will not appear until the first request has entered the pipeline. So if you browse to your site and then open your task manager, you will see the w3wp.exe.

How do I enable w3wp process?

Open Visual Studio in Administrator Mode, then Debug -> attach to process -> tick the check box "Show processes from all user", select w3wp.exe. Administration mode is required for debugging the source code.

How do you attach a debugger to a process?

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.

How do I find w3wp exe?

Via the Windows Task Manager, you can see processes named w3wp.exe. Within the IIS management console, you can view more details. Open IIS manager and on the left side click on the name of your computer. You will then see a similar list of icons on the right as shown in the screenshot below.


2 Answers

Make sure you have the Show processes in all sessions checkbox checked!

like image 69
Nick Avatar answered Oct 12 '22 10:10

Nick


Ok, I found how to make it work, I rebuilt the whole solution and it started seeing the process again. This doesn't make a whole lot of sense to me, but oh well.

like image 21
Glenn Slaven Avatar answered Oct 12 '22 11:10

Glenn Slaven