Hi, I use ECMAScript to draw dxf file.
And when run in product, I don't need show Debug Info because it unnecessary and I think it make slow process
Are there options do not display debug?
Disable or hide Debug info
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: Disable or hide Debug info
First, let me say that most of these messages indicate that there is something wrong which needs your attention.
- The RTransaction messages indicates that some of the transactions are failing. This needs investigation.
- The counters at the end indicate that the code is leaking the indicated number of operations, entities, etc. Most likely the document interface created has not been destroyed (use di.destroy()).
Outputting these few lines into the command line will not slow things down notably. Most terminals can easily output 10000s of lines in less than a second. The output shown likely takes less than 1ms to output.
To hide the output, you can use standard command line tools for output redirection.
- The RTransaction messages indicates that some of the transactions are failing. This needs investigation.
- The counters at the end indicate that the code is leaking the indicated number of operations, entities, etc. Most likely the document interface created has not been destroyed (use di.destroy()).
Outputting these few lines into the command line will not slow things down notably. Most terminals can easily output 10000s of lines in less than a second. The output shown likely takes less than 1ms to output.
To hide the output, you can use standard command line tools for output redirection.
Re: Disable or hide Debug info
Nice reply, debug message very useful when dev, but prod I don't want show this
Current now, I use stdout=os.devnull to hide this
Thank Andrew
Current now, I use stdout=os.devnull to hide this
Thank Andrew