在eclipse中的调试会话期间记录所有跟踪信息 [英] log all trace info during a debug session in eclipse
问题描述
我想记录调试会话的每个步骤的所有调试信息(以便后面的所有这些数据),例如调用的方法的名称,参数值,所有变量值等。 p>
是否有任何可以启用的选项?一个重要的事情是:它不是一个java程序,我应该在哪里改变代码来实现这一点?
这是一个从Eclipse中运行的TCL,使用activeState调试器。所以AOP和JDT不是这里的选项: - (
TIA
Leo
$ b $我建议使用解决方案
一个简单的例子:
set :: TraceFd [open {/ path / to / logfile} a]
proc :: TraceLog args {
puts $ :: TraceFd $ args
}
跟踪添加执行源{enterstep leavestep} :: TraceLog
源/the/main/file.tcl
这或多或少是你想要的,我不知道eclipse如何与Tcl一起工作,但是调试Tcl的最好方法是使用Tcl :)
I would like to log all the debug information on each step (to crunch all these data later) of a debugging session, such as the name of the method called, the parameter value, all the variables values, etc.
Is there any option that enables this? Where should I change the code to make this happen?
One important thing: it isn't a java program. It's a TCL being run from inside eclipse, using activeState debugger. So AOP and JDT are not options here :-(
TIA
Leo
I suggest to use the trace
command in tcl.
A simple example:
set ::TraceFd [open {/path/to/logfile} a]
proc ::TraceLog args {
puts $::TraceFd $args
}
trace add execution source {enterstep leavestep} ::TraceLog
source /the/main/file.tcl
This does more or less what you want. I don't have any idea how eclipse works with Tcl, but the best way to debug Tcl is with Tcl :)
这篇关于在eclipse中的调试会话期间记录所有跟踪信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!