trace

Tracing and logging line by line execution of a c++ program

Tracing and logging line by line execution of a c++ program Question: I am working on an opensource finite element software, which is written in C++ (Visual Studio). The documentation and examples provided are only helpful to know which methods to call for a specific purpose, but could not help in letting the users know, …

Total answers: 2

Trace Python imports

Trace Python imports Question: My Python library just changed it’s main module name from foo.bar to foobar. For backward compat, foo.bar still exists, but importing it raises a few warnings. Now, it seems some example program still imports from the old module, but not directly. I’d like to find the erroneous import statement. Is there …

Total answers: 3

How can I make Perl and Python print each line of the program being executed?

How can I make Perl and Python print each line of the program being executed? Question: I know that bash -x script.sh will execute script printing each line before actual execution. How to make Perl and Python interpreters do the same? Asked By: Vi. || Source Answers: Devel::Trace is the Perl analogue, the trace module …

Total answers: 3