Adding text to debug trace file

Started by siocnarf, September 30, 2022, 08:37:57 AM

Previous topic - Next topic

siocnarf

Hi,

When I activate Debug trace, is it possible adding comments inside trace log file from my script? Something like "OK now I this is the window x"

Thanks

td

Just add a line as a noop. For example:
Code (winbatch) Select
Terminate(1==0, "DebugTrace Noop", "OK now I this is the window x")
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

siocnarf


td

It is not doing anything which is the point of a "noop".

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/WILLZ_T__003.htm

Just add the line at the point you want a comment and look at the resulting trace file. All will become clear.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade