ASP.NET - MVC 4: How to debug asp.net mvc 4 source code / application in VS 2010? | Coding Cluster - using asp.net, c#, mvc 4, iphone, php, ios, javascript, in asp.net mvc 3 & more
 

ASP.NET - MVC 4: How to debug asp.net mvc 4 source code / application in VS 2010?

Wednesday

ASP.NET: MVC 4 Debugging applications/Projects in visual studio 2010:

Below the steps for debug your asp.net mvc 4 source code using visual studio 2010 ultimate:


  1. First close all Visual Studio instances. 
  2. Ensure that you are a member of the local debuggers group (Control Panel, Administrative Tools, Local Security Policy, Security Settings, Local Poliies, User Rights Assignment,  Debug Programs).  
  3. Change the following registry key(got start type “regedit” in “Search program and files”  and click regeedit It will open “registry edit” window) HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger\DisableAttachSecurityWarning from 0 to 1. 
  4. Go to IIS Crate a Virtual directory for your web application 
  5. Open the project in VS editor. Right click in the project and click property, it will open the property window 
  6. Click on Web,on Server tag select Use Custom web service and enter virtual path of our web application
  7. Open virtual path in Any one Browser
  8. In VS IDE click Debug tag and click Attached to process and select W3wp.exe and click attach button 
  9. Then put break point(s) and click start  with debugging. 



0 comments:

Post a Comment

Share your thoughts here...

 
 
 

RECENT POSTS

Boost

 
Blogger Widgets