Visual Studio (2005,2008,2010) Tips and Tricks.
#504 Debug ASP.net in any browser with #VisualStudio
Wednesday, December 09 2009
When browsing the “Visual Studio” search on twitter, I saw a post from @GamersOnlyOlder asking about debugging asp.net in a browser other than Internet Explorer.
Are you forced to use Internet Explorer when debugging ASP.net applications? Absolutely not. This quick tip/trick shows how to browse and setup a default browser to use when debugging ASP.net pages. If you change the default browser, then your standard F5 will launch that browser, and attach to the process for you. In this example, I switch between IE and Chrome for debugging sessions.
Visual Studio Tip / Trick #504 English Transcription:
Hey guys just had a quick question on twitter about debugging ASP.NET with Visual Studio in a browser other than internet explorer.
So if you right click an HTML or ASPX page you can do a View in Browser. That’s gonna use your default browser if you then go down one more to browse with you get a menu of all the browsers you have installed on your system. So right now its internet explorer, if I just press [F5] to debug you will see that I get a quick IE instants that pops up that brings me into my debugging session.
[SHIFT]+[F5] to stop debugging if I come back right click on my page select browse with, I can select another browser like Chrome and here is the trick. Set as default then your [F5] run in browse with will use that, so I will just go ahead and click cancel there come back here. Now [F5] run will launch the browser the Google Chrome browser then I can debug and then [F5] run will actually load the page. So there is quick trick for you around ASP.NET debugging Visual Studio using the browser other than internet explorer.
6 comment(s) so far
Playing/Downloading requires a username/password.
504 Debug ASP.net in any browser with #VisualStudio is a very useful post. Here is another option Perhaps some people did it happened and solution, but there are people that sometimes it happens and do not know how to solve, the problem arises when one is trying to debug an application in ASP: NET with VS2003 and shows us the following message error:
Error trying to run project: Unable to start debugging on the web server. No permission to debug the application. The URL of the project is in the Internet zone.
It is a fairly typical error in application debugging, this is because they are poorly configured Internet settings, plus the configuration of our server.
To fix this we must do 2 things:
1 .- Open Internet Explorer. On the Tools menu, click Internet Options, Security tab, click Custom Level. Down at the bottom of the Settings list. Under User Authentication tab, look for login and then select Automatic logon with current username and password.
So much already solved the problem with Internet Explorer, now set our IIS.
2 .- Open ISS, on the Web server right click, select properties, directory security tab click edit in the window which appears to mark the Use Integrated Security.
Well that's all we need for our application can be cleaned properly.
Muchas gracias, era lo que buscaba...
Thanks for the suggestions.
Your option seems to work very well. Thanks Much