实时监控/跟踪 [英] Real-time Watch/Trace

查看:71
本文介绍了实时监控/跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法实时观察变量值,而无需在

中断模式下运行?看来你应该能够给VB一个

变量/对象的列表,你可以随时看到这些变量/对象而无需通过程序步骤

。我想你可以编写第二个非MDI表格产生

,并找出一些方法,每当某个

值发生变化时,就会向它发送更新的值。但那将是很多工作。 VB有这样的

函数吗?


-

谢谢,

Ricky W .Hunt

freendeed

Is there a way to watch a variables value in real-time without running in
break mode? It seems you should just be able to give VB a list of
variables/objects that you could see at any time without having to step
through the program. I guess you could write spawn a second, non-MDI form
and figure out some way to send updated values to it every time a certain
value changes. But that would be heck of a lot of work. Does VB have any
function like this?

--
Thanks,
Ricky W. Hunt
freendeed

推荐答案

你可以使用debug.writeline / trace语句将变量转储到

输出窗口或日志


-


OHM(Terry Burns)

。 。 。单手人。 。


当你不知道自己在做什么时,过得很快


Ricky W. Hunt < rh的***** @ hotmail.com>在消息中写道

news:8VjPc.76130
U can use debug.writeline/trace statements to dump the variables to the
output window or a log

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don''t know what you''re doing

"Ricky W. Hunt" <rh*****@hotmail.com> wrote in message
news:8VjPc.76130


eM2.57946@attbi_s51 ...
eM2.57946@attbi_s51...
有没有办法看一个变量值是否实时没有在中断模式下运行?看来你应该能够给VB一个你可以随时看到的变量/对象列表,而无需通过程序步骤。我想你可以编写第二个非MDI表格,并找出一些方法,每当某个值发生变化时,就会向它发送更新的值。但那将是很多工作。 VB有这样的功能吗?

-
谢谢,Ricky W. Hunt
freendeed
Is there a way to watch a variables value in real-time without running in
break mode? It seems you should just be able to give VB a list of
variables/objects that you could see at any time without having to step
through the program. I guess you could write spawn a second, non-MDI form
and figure out some way to send updated values to it every time a certain
value changes. But that would be heck of a lot of work. Does VB have any
function like this?

--
Thanks,
Ricky W. Hunt
freendeed



" One Handed Man(OHM - Terry Burns)" < news.microsoft.com>在消息中写道

新闻:OS ************* @tk2msftngp13.phx.gbl ...
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:OS*************@tk2msftngp13.phx.gbl...
你可以使用debug.writeline / trace语句将变量转储到
输出窗口或日志
U can use debug.writeline/trace statements to dump the variables to the
output window or a log



这是你放在程序开头的一行,它写了一行线路

每次价值变化?或者你必须把它放在你想要的每个地方

显示的值?我想要的东西说显示一个变量,它是'/ b $ b值,只是显示它的当前值。例如,如果它是一个变量

,它希望观看数字闹钟上的秒数。在VB.NET中有没有像这样的



Is that a line you put at the beginning of the program and it writes a line
every time the value changes? Or do you have to put it every place you want
the value displayed? I want something that say shows a variable and it''s
value and just shows it''s current value. For instance, if it was a variable
it would like watching the seconds on a digital alarm clock. Is there
nothing like this in VB.NET?


这篇关于实时监控/跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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