Search code examples
pythoncobolmicrofocus

Can the system trace function be set in MicroFocus Cobol?


Does MicroFocus Cobol or any other, have a feature equivalent to Python's sys.settrace()? The function passed as a parameter to such a tracing function, would be called after the execution of each line of the source code.


Solution

  • It's not an exact equivalent, but you can use READY TRACE for debugging. Enable it with the TRACE compiler directive.