使用跟踪的问题 [英] problem with using trace
本文介绍了使用跟踪的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在代码类中使用trace.warn。
我使用trace = true设置调用aspx页面但是当我放入
$时会出现此错误b $ b trace.warn(" hello")在我的代码类中
------------------
System.NullReferenceException:对象引用未设置为
对象的实例。
How can I use trace.warn in a code class.
I set the calling aspx page with trace=true but get this error when I put a
trace.warn("hello") in my code class
------------------
System.NullReferenceException: Object reference not set to an instance of
an object.
推荐答案
你真的不应该在类定义中使用trace。相反,在使用该类的应用程序中使用它。
" TJS" <无**** @ here.com>在消息中写道
新闻:O5 ************** @ TK2MSFTNGP10.phx.gbl ...
You really shouldn''t use trace in a class definition. Instead, use it in
the application that uses the class.
"TJS" <no****@here.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
我如何使用跟踪.warn在代码类中。
我用trace = true设置调用aspx页面,但是当我在我的代码类中添加了一个trace.warn(hello)时出现这个错误
------------------
System.NullReferenceException:对象引用未设置为对象的实例。
How can I use trace.warn in a code class.
I set the calling aspx page with trace=true but get this error when I put
a trace.warn("hello") in my code class
------------------
System.NullReferenceException: Object reference not set to an instance of
an object.
目的是调试,但跟踪在这里似乎没用。
我没有看到任何跟踪私人课程的方法来自
调用页面的函数变量。
我所做的是从会话变量返回并将其写入
屏幕。
" Scott M." < S - *** @ nospam.nospam>在消息中写道
新闻:Om *************** @ tk2msftngp13.phx.gbl ...
The purpose is to debug, but trace seems useless here.
I don''t see any way to trace private class function variables from the
calling page.
What I''ve done is return it from a session variable and that writes it to
the screen.
"Scott M." <s-***@nospam.nospam> wrote in message
news:Om***************@tk2msftngp13.phx.gbl...
你真的不应该'在类定义中使用trace。相反,在使用该类的应用程序中使用它。
" TJS" <无**** @ here.com>在消息中写道
新闻:O5 ************** @ TK2MSFTNGP10.phx.gbl ...
You really shouldn''t use trace in a class definition. Instead, use it in
the application that uses the class.
"TJS" <no****@here.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
我如何在一个中使用trace.warn代码类。
我用trace = true设置调用aspx页面但是当我在我的代码类中添加了一个trace.warn(hello)时会出现这个错误
------------------
System.NullReferenceException:对象引用未设置为对象的实例。
How can I use trace.warn in a code class.
I set the calling aspx page with trace=true but get this error when I put
a trace.warn("hello") in my code class
------------------
System.NullReferenceException: Object reference not set to an instance of
an object.
您正在谈论的特定功能(跟踪)是作为一种新的
方式调试Web表单。你仍然可以使用所有传统的调试方法来调试类。
TJS <无**** @ here.com>在留言中写道
news:ec **************** @ TK2MSFTNGP11.phx.gbl ...
The particular feature you are talking about (trace) was created as a new
way to debug web forms. You can still use all the traditional debugging
(autos, locals, watches) techniques to debug classes.
"TJS" <no****@here.com> wrote in message
news:ec****************@TK2MSFTNGP11.phx.gbl...
目的是调试,但跟踪似乎没用。
我没有看到任何方法来跟踪
调用页面中的私有类函数变量。
我做了什么是从会话变量返回它并将其写入屏幕。
Scott M. < S - *** @ nospam.nospam>在消息中写道
新闻:Om *************** @ tk2msftngp13.phx.gbl ...
The purpose is to debug, but trace seems useless here.
I don''t see any way to trace private class function variables from the
calling page.
What I''ve done is return it from a session variable and that writes it to
the screen.
"Scott M." <s-***@nospam.nospam> wrote in message
news:Om***************@tk2msftngp13.phx.gbl...
你真的不应该使用跟踪在类定义中。相反,在使用该类的应用程序中使用它。
" TJS" <无**** @ here.com>在消息中写道
新闻:O5 ************** @ TK2MSFTNGP10.phx.gbl ...
You really shouldn''t use trace in a class definition. Instead, use it in
the application that uses the class.
"TJS" <no****@here.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
我如何在一个中使用trace.warn代码类。
我用trace = true设置调用aspx页面但是当我在我的代码类中放入trace.warn(hello)时出现此错误
------------------
System.NullReferenceException:对象引用未设置为对象的实例。
How can I use trace.warn in a code class.
I set the calling aspx page with trace=true but get this error when I
put a trace.warn("hello") in my code class
------------------
System.NullReferenceException: Object reference not set to an instance
of an object.
这篇关于使用跟踪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文