Python或其他MicroFocus有没有等同于Python的特性?作为参数传递给这样的跟踪函数的函数将在执行源代码的每一行之后被调用。
发布于 2013-06-05 00:27:07
它不是完全等同的,但您可以使用READY TRACE进行调试。使用TRACE编译器指令启用它。
发布于 2013-06-11 01:38:05
OpenCOBOL支持
-ftrace Generate trace code
- Executed SECTION/PARAGRAPH
-ftraceall Generate trace code
- Executed SECTION/PARAGRAPH/STATEMENTS
- Turned on by -debugcobc命令行选项。这与Python的观点不完全相同,但在启用时会输出章节、段落和句子条目的跟踪轮。毫无疑问,其他编译器也会有类似的东西。除了准备好的跟踪,调试和>>D其他调试功能,如那些允许与声明。http://opencobol.add1tocobol.com/#declaratives
procedure division.
declaratives.
handle-errors section.
use after standard error procedure on filename-1.
handle-error.
display "Something bad happened with " filename-1 end-display.
.
helpful-debug section.
use for debugging on main-file.
help-me.
display "Just touched " main-file end-display.
.
end declaratives.https://stackoverflow.com/questions/16914955
复制相似问题