May I know any debug methods on Quantrix Script?

Generic selectors
Exact matches only
Search title only
Search in content
Search in all posts
Search in pages
Answers
Questions
299 viewsScriptingdebug script
0

As I have experience in some programmer language, there is some debug method like breakpoints or step-by-step run.
What is possible debug methods in Quantrix scripting?

Answered question
0

You’re welcome.
If you prefer breakpoints, you can also use a assert method in the QM’s Scripting Console (see more details, for example, here). Arrange asserts in the right parts of the script. Run the script from the console. If assert will evaluate the variable to false, the script at this point will stop and display a message in the status line. Otherwise, the script will execute and display the result.
Below is the demonstration of two cases with simple example.
*
There is no error, take the result (4).
*
There is the error, the script is stopped. There is no result (4).
*
Good luck

Answered question
0

Thanks for reply, better than none, more better if having more function, thanks.

Answered question
0

As I understand it, the System.out.println() and System.err.println() are your assistants of scripts debugging.
See more details here.

Answered question