If I am stepping through a C++ debugger, I am able to see the current line being executed, values for local variables, etc... all through the IDE. Is there a way to send information from the debugger to a log file as well as viewing it through the IDE. After running the program through the debugger, the log file would show for example how a function (based on the source file) was traversed, such as:
entering function func1
func1 arg1 int& i1 = 3
func1 arg2 int& i2 = 4
func1 line 3 i2 = 8
func1 line 5 call func2
...
The only requirement would be no user interaction once executable is launched, just setup whatever necessary and then run the progam and view the log file. Even better would be a separate program which runs the debugger non-interactively. I don't know if there is such a capability for any free debugger (VC++ Express or NetBeans or ...) whether from within the debugger or from an add-on.