Last post Jun 14, 2019 07:52 AM by AddWeb Solution
Jun 13, 2019 05:54 PM|rkrex|LINK
I just started working on a new project where i need to debug a website first to get a feel of how the processes flow and the accompanying data flows with it. I just have a major problem that i don't know how to debug this website that has mainly code behind
in aspx files.
Jun 14, 2019 03:08 AM|Yongqing Yu|LINK
According to your requirements, I suggest that you could break each method in the code behind corresponding to your aspx page.
Then run the project, use F10 to debug step by step, the debugging step is the process of your current project.
Specific debugging process and information, you could refer to the following links:
Jun 14, 2019 07:52 AM|AddWeb Solution|LINK
Please follow the below steps , It is a general way for debugging of webform
1 ) click the left margin on the line from where you want to start debugging. A red dot appears and the text on the line is highlighted in red. The red dot represents a breakpoint. When you run the application under the debugger, the debugger will
break execution at that location when the code is hit. You can then view the state of your application and debug it.For more information, see Breakpoints.
2 ) On the Debug menu, click Start Debugging.
3) The Debugging Not Enabled dialog box appears. Select Modify the Web.config file to enable debuggingoption, and click OK.
4) Internet Explorer starts and displays the page that you just designed.
In Internet Explorer, click the button.
In Visual Studio, this takes you to the line where you set your breakpoint on the code page Default.aspx.cs or Default.aspx.vb. This line should be highlighted in yellow. You can now view the variables in your application and control its execution. Your
application stops executing and waits for a command from you.
5) On the Debug menu, click Windows, then click Watch, and then click Watch1.
6) In the Watch window, type TextBox1.Text.
The Watch window shows the value of the variable ex. TextBox1.Text
7) On the Debug menu, click Step Over.
The value of TextBox1.Text changes in the Watch window to read:
"Button was clicked!"
8) On the Debug menu, click Continue.
9) In Internet Explorer, click the button again.
Execution stops at the breakpoint again.
10) If you click again on same line where you put debug(reddot in the left margin) .
This removes the breakpoint.
11) On the Debug menu, click Stop Debugging.
For more information how to debug Asp.net or Asp.net core Apps
Please refer this links