Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to attach to and debug an ASP.NET MVC application running in Windows Azure Emulator?

I am writing an MVC 3 application to run in Windows Azure. On my local machine I use the Windows Azure emulator.

If I press F5 in my solution ("Start debugging") I'm able to put breakpoints and step through the code of my application.

Do you know if it's possible to attach to the application if it's already running (if it's been started with CTRL + F5, "Start without debugging")? If yes, how?

In ASP.NET running in IIS I just have to attach to the w3wp.exe process. How to do the same for the Windows Azure emulator?

like image 556
LeoD Avatar asked Nov 17 '25 01:11

LeoD


1 Answers

If you are running the application in IIS (have a Sites section in your config file) then you will do it the same way with the emulator. Azure creates an Application Pool for the deployment so you will just need to attach to that w3wp.exe process.

like image 198
Tom Avatar answered Nov 19 '25 20:11

Tom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!