WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: siocnarf on September 30, 2022, 08:37:57 AM

Title: Adding text to debug trace file
Post by: siocnarf on September 30, 2022, 08:37:57 AM
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
Title: Re: Adding text to debug trace file
Post by: td on September 30, 2022, 09:41:48 AM
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")
Title: Re: Adding text to debug trace file
Post by: siocnarf on September 30, 2022, 10:32:23 AM
What is doing terminate?
Title: Re: Adding text to debug trace file
Post by: td on September 30, 2022, 01:13:38 PM
It is not doing anything which is the point of a "noop".

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/WILLZ_T__003.htm (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.