Last post Mar 16, 2016 07:46 AM by Chris Zhao
Mar 12, 2016 10:20 PM|yzhang738|LINK
I have a MVC application in vs 2015. I want to debug from url with query string like
http:/xxx.com/Register/SmartLink/85. But when I copy it in address bar and run it, program can not stop at the break point in the controller action. I need help on how to debug
in this situation. Thanks.
Mar 14, 2016 09:35 AM|Siva Krishna Macha|LINK
Hope compilation debug=true in your web.config file. If it is false, make it to true.
Mar 14, 2016 10:52 AM|Chris Zhao|LINK
If you have a breakpoint set at the location where you want to break, choose Debug, Start Debugging if you have not started debugging, or Debug, Continue. (In both cases F5 is the shortcut key). The debugger stops at the next breakpoint in the execution
of the code. Choose Debug, Continue until you reach the breakpoint that you want.
#Navigating through Code with the Debugger
Mar 14, 2016 11:59 PM|yzhang738|LINK
What you describe is the normal way to debug which I am well aware of. What I ask is that how to debug if web program start from url? In that case it can not start by F5. I know I can set the url as specific page in property of project. But the page needs
Mar 16, 2016 07:46 AM|Chris Zhao|LINK
1. Choose Debug and then choose Attach to Process.
The Attach to Process dialog box is displayed.
2. Under Available Processes, locate the name of the process to which you want to attach the debugger.
If the process you need is not displayed, you can display more processes that are running. To do this, check Show processes from all users and Show processes in all sessions.
3. Under Available Processes, choose the name of the process and then choose Attach.
4. Start your test.
How to: Debug while Running a Test in an ASP.NET Solution