09-21-2023, 12:40 PM
(09-20-2023, 05:44 PM)dbox Wrote: One feature that was added in the last release (that I haven't done a very good job of publicizing yet) that can help with troubleshooting is the Console library. This lets you write logging messages to the QBJS console window based on a log level. You can click the message in the log and it will take you to the corresponding line of code.
If you just want to print text to the console window and you don't really care about line numbers, you can use the Console.Echo method.
Awesome. I abuse the crap out of `console` in web development. This is a great addition!
Quote:And thus concludes the ...LOL!
Are you open to suggestions on extending in the future? Like adding a `console.dir` to dump our QB vars and objects and things?