The three broad ax that ASP.Net debugs:The third action
Tuesday, March 03, 2009 by rain
The two court time that introduces in front is barehanded argue,Likelihood you can feel to be hit so that do not pass addiction,We can
Cannot carry an other weapons of what play?Since be everybody's need,How can be I satisfied again?Not
Over- ,Say to still thank the uncle that build Ci yes,Otherwise I played with respect to what do not have!
good,It is below
The third action checks wrong god implement Debugger
The weapon that should have used,The preparation that do not have a dot is those who be no good,So we do bit of warming-up first.
The set of 1.Config.web:In still remembering the first action, tell?Was opposite,Still be this file,Open it,To inside add this statement
%26lt;compilation Debugmode= %26quot;true%26quot; %26gt;%26lt;/compilation%26gt;
Explain:Because setting a circumstance to fall beforehand,ASP.Net can run a page with regular pattern,To can let it compile a webpage in order to examine wrong pattern,We must add this statement.
2. starts ?of DbgUrt.exe: of the tool that check a faultThe 趚 other Pi of Sun silk ribbon growing permanent teeth: \In Program Files\Microsoft.Net\FrameworkSDK\GuiDebug catalog,File name is DbgUrt.exe
3. activation checks wrong function:
Moving DbgUrt.exe program
- - > choose menu Debug/Processes
- - > Show System Processes of the pitch on in the Processes dialog box that appearing and Show Processes In All Sessions
- - > in casing of Available Processes list most below if do not have,find Xspwp.exe(,Run one.aspx page please,Bolt by Refresh next.Bolt by Refresh next.
- - > after choosing this file,Press Attach key
- - > in Common Language Runtime of the pitch on in occurrence dialog box,Press OK next,Return Processes dialog box
- - > bolt by Close
- - > File/Open/File is chosen in the entree sheet of the program,The file that opens you to want to detect.
Below begin a page formally to debug.
After using DbgUrt.exe to open the file that is about to debug,The first business that we should do is:Install
Dot.Feel to use a program with other Windows debug very picture (what very picture?It is one model simply
Same!) the method that adds breakpoint is very simple,The place that predetermination needs to add breakpoint surely,Move cursor next
This,The foremost noodle that presses F9 perhaps goes in this hits mouse wrong key,This in front can appear of an interrogation
Mark,This is breakpoint!We are OK of course set many breakpoint,Want you to like only.If you resemble cancelling one
Breakpoint,The action that needs to repeat setting breakpoint in this only can.
After installing good breakpoint,Should use a browser to browse the page that is debugged only,Run breakpoint when the program
When buy,It can give DbgUrt.exe from move,And stop in a moment ago breakpoint position.This is,We but
Was worth variably in order to use examination of Command Window-Immediate window.
When we want to continue to carry out current page,We have a few kinds of choices:
1, by F5 key,Run next breakpoint,If do not have breakpoint,Run this page;
2, by F11 key,The pace handles executive sheet;
3, by F10 key,It is weak condition operation likewise,But it can enter a subprogram (function) medium statement.
Of course,What the function of DbgUrt.exe introduces than me for certain is ambitious big much.Write ASP.Net program,Have a such sharp weapon,Was to save us really a lot of time ah!How to return discomfort to try!