Feed on
Subscription

The three broad ax that ASP.Net debugs:The second action

Last time our respecting configures Config.web file,Let a bad news give out more clew.Can have solely
What does clew have to use again?" know where the fault is namely at most,But I still won't change ah!" fasten urgent,Not
Urgent,See us what does this article call to coming," three broad ax " ,That is one axe be better than of course one axe!On
Second that action is not quite fierce,We still have below that,Fasten so urgent ah,And listen to me to slowly come.

The second action:Trace is tracked

The person that has used ASP should have used the statement below:
Response.Write XXX
Response.End

Although I like the process designing method of ASP not quite,But this kind debugging a method expediently still is very good.Change with
After ASP.Net,I discover ASP.Net offers a kind more powerful debug a method,It is we should say now
Trace.Alleged Trace function increases on a few number in the foremost face of the webpage namely,To what labels then?Hey hey,I cannot tell you immediately (bad,Smelly egg... wow!) .I am to say,The knowledge that I want to introduce a foundation one a little bit first!

I do not know everybody how to much understand to the page designation of ASP.Net,For below explaining convenience,I or
Introduce summarily!What the page designation of ASP.Net points to is in each ASP.Net page most above,With
The statement that %26lt;%@ and %%26gt; draw together rise.Its function is to be used when handling ASP.Net document certainly,Need is
All makes the set with a few special what.Specific grammar is as follows:
%26lt;%@ Directive Attribute=value %%26gt;
Among them:Directive is page designation accord with;A few attribute that Attribute is correspondence of this indicative accord with.
Notice:Blank space needs between attribute,And there cannot be blank space between "=" .
ASP.Net is included now the following 7 kinds of labels
@ Page,
@ Control,
@ Import,
@ Registe,
@ Assembly,
@ OutputCache,
@ Webservice

What we use at most is @ Page designation,And the Trace function that I should tell now,Also should use @ Page.(About these seven indicative specific application,After I can be in, post tell about.) good,The theme that recurs us.Should use Trace function,You must be in of the page most above add:%26lt;%@ Page Trace= %26quot;true%26quot; %%26gt;This word.After been add,You can treat the moving condition of the page.Run this page.You can discover the below half part in the page appeared the data of one pile.The meaning that these data explain below:
Request Details: 蚆eans of ü 齊 Equest reads extraction data to browser place;
Trace Information: 驶 of ⅲ of bank of silk ribbon of  of grave of instrument of green of Mou of silk ribbon of Hui of  of the ⑸ that record 
Control Tree: 网?multiplies  of Piao of eye of Mei of  A Chinese-style unlined garment fly admire of Lai of Piao   bumps into willful impossible to carry ?br/>Cookies Collection: 网?takes news of Ookie of 腃 of Mei of  A Chinese-style unlined garment;
Headers Collection: 浏?Lang Jian seeks ?of ⅰ of Qiao boil bank
Server Variables:SThe data information of Erver variable.

Had data of this one pile,Our job is good do much,But wait a moment jubilates,Trace still provided more powerful function,Look then please.

Besides letting ASP.Net page show this piles data,We are OK still of the variable that will use in the program
The value is real time show in Trace Information section,Its method is to call Trace.Warn or Trace.Write two methods.Their usage is as follows:
Trace.Warn("Description" , variables);
Trace.Write("Description" , variables);

I think you can ask certainly,What do these two have to distinguish?The answer is:On the function,These two are exactly like,Just showing on,Trace.Warn will express with gules font.

good,Do not know to introduce everybody to feel so how?Anyway I am very tired ah!good did not say,What problem is carried,I can be done as far as possible answer.Let us next time adieu!
Related:

    Submit: