Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging QJSEngine?

Tags:

qt

qt5

qtscript

I have a project that provides a JS API for (long running) user scripts. This project still uses the QtScript module which is kinda bugging me since the module is labeled deprecated for quite some time.

My problem is that i need the users to be able to debug their JS code, which is where QtScript and especially QScriptEngineDebugger is really handy.

Now i just read those 2 lines on the "What's New in Qt 5.7" help page.

Enabled all debug services to work with QJSEngine (instead of QQmlEngine), which allows non-QML JavaScript debugging or profiling.
Added support for debugging multiple QJSEngine instances at the same time.

Obviously that caught my eye, but searching through the rest of the help i couldn't find anything about debugging QJSEngine.

Can anyone tell me how to achieve something similar to QtScript and QScriptEngineDebugger with QJSEngine?

like image 494
ldr Avatar asked Apr 11 '26 21:04

ldr


1 Answers

There is now a 3rd party fork of the QtScriptTools which can debug the new QJSEngine as well: https://github.com/DavidXanatos/NeoScriptTools

like image 105
DavidXanatos Avatar answered Apr 16 '26 19:04

DavidXanatos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!