The following step guide you to debug MVC application in VS 2010
- Close all Visual Studio instances.
- 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).
- 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.
- Go to IIS Crate a Virtual directory for newly created web application
- Open the project in VS editor
- Right click in the project and click property, it will open the property window
- Click on Web,on Server tag select Use Custom web service and enter virtual path of our web application
- Open virtual path in Any one Browser
- In VS IDE click Debug tag and click Attached to process and select W3wp.exe and click attach button
- Now open the code behind file and put break point
- Open virtual path in Any one Browser
No comments:
Post a Comment