获取运行时错误行号 [英] Obtaining Run Time error line number

查看:109
本文介绍了获取运行时错误行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我试图获取一次错误的行号。

部署时不会在方法中插入行号。

IDE插入行号,但此功能不是
似乎是部署选项。没有输入一行

数字例如。(10210 :)代码erl和e.tostring不要

表示发生错误的行。当

在IDE中逐步执行时,插入

行号似乎会在代码中插入无操作。有没有我在这上面缺少
或者我需要插入行号

用于运行时报告如VB6


谢谢

Al

Hi,

I am seeking to obtain the line number of an error once
deployed with out inserting line numbers in the method.
The IDE inserts line numbers but this function does not
appear to be a deployment option. Without entering a line
number eg.(10210:) in the code erl and e.tostring do not
indicate the line on which the error occured. Inserting
line numbers appeares to insert no-ops into the code when
it is stepped through in the IDE. Is there something I
am missing on this or do I need to insert line numbers
for run time reporting like VB6

Thanks
Al

推荐答案

使用Debug.writeline方法为您提供运行时信息。这将在调试器的输出窗口打印


Debug.Writeline(我现在打印出一个声明)

OHM


Al写道:
Use the Debug.writeline method to give you runtime information. This will
print in the output window of the debugger.
Debug.Writeline("I''m printout out a statement now")
OHM

Al wrote:


我试图获取一次错误的行号/>在方法中插入行号进行部署。
IDE插入行号,但此功能似乎不是部署选项。如果没有在代码erl和e.tostring中输入一行代码(例如。(10210 :)),请不要指出发生错误的行。当在IDE中逐步执行时,插入
行号会出现在代码中插入无操作。是否有我遗漏的内容或者我是否需要为VB6等运行时报告插入行号

Al
Hi,

I am seeking to obtain the line number of an error once
deployed with out inserting line numbers in the method.
The IDE inserts line numbers but this function does not
appear to be a deployment option. Without entering a line
number eg.(10210:) in the code erl and e.tostring do not
indicate the line on which the error occured. Inserting
line numbers appeares to insert no-ops into the code when
it is stepped through in the IDE. Is there something I
am missing on this or do I need to insert line numbers
for run time reporting like VB6

Thanks
Al






我关心的是一旦产品部署,因此

IDE / Debugger不是正在使用。我不想在代码中插入

任何东西,但仍然希望

获取行号:)


Al

Hi,

My concern is once the product is deployed thus the
IDE/Debugger is not in use. I do not want to insert
anything into the code manualy but would still like to
get line numbers :)

Al

-----原始消息-----
使用Debug.writeline方法为您提供运行时
信息。这将在调试器的输出窗口中打印。

Debug.Writeline(我现在打印出一个声明)

OHM

Al写道:
-----Original Message-----
Use the Debug.writeline method to give you runtime information. This willprint in the output window of the debugger.
Debug.Writeline("I''m printout out a statement now")
OHM

Al wrote:


我试图在方法中插入行号时获取错误的行号。< IDE插入行号,但此功能似乎不是部署选项。如果没有在代码erl和e.tostring中输入
行号,例如。(10210 :),则
不表示发生错误的行。当在IDE中逐步执行时,插入
行号会出现在代码
中插入无操作。是否有我遗漏的内容或者我是否需要为VB6等运行时报告插入行号

Al
Hi,

I am seeking to obtain the line number of an error once
deployed with out inserting line numbers in the method.
The IDE inserts line numbers but this function does not
appear to be a deployment option. Without entering a line number eg.(10210:) in the code erl and e.tostring do not indicate the line on which the error occured. Inserting
line numbers appeares to insert no-ops into the code when it is stepped through in the IDE. Is there something I
am missing on this or do I need to insert line numbers
for run time reporting like VB6

Thanks
Al




.



*" Al" <一个******* @ discussions.microsoft.com> scripsit:
* "Al" <an*******@discussions.microsoft.com> scripsit:
我试图在方法中插入行号时获取错误的行号。
IDE插入行号,但此函数不
似乎是一个部署选项。如果没有在代码erl和e.tostring中输入一行代码(例如。(10210 :)),请不要指出发生错误的行。当在IDE中逐步执行时,插入
行号会出现在代码中插入无操作。有没有我在这上面缺少的东西,或者我是否需要为VB6等运行时报告插入行号
I am seeking to obtain the line number of an error once
deployed with out inserting line numbers in the method.
The IDE inserts line numbers but this function does not
appear to be a deployment option. Without entering a line
number eg.(10210:) in the code erl and e.tostring do not
indicate the line on which the error occured. Inserting
line numbers appeares to insert no-ops into the code when
it is stepped through in the IDE. Is there something I
am missing on this or do I need to insert line numbers
for run time reporting like VB6




见(完整主题) ):


< http://groups.google.com/groups?selm = u7POIgjfDHA.3616%40TK2MSFTNGP11.phx.gb l>


-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps .org / dotnet>



See (complete thread):

<http://groups.google.com/groups?selm=u7POIgjfDHA.3616%40TK2MSFTNGP11.phx.gb l>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


这篇关于获取运行时错误行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆