Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to attach an external debugger for the .js files? #8

Open
sdsnatcher opened this issue Sep 26, 2021 · 1 comment
Open

How to attach an external debugger for the .js files? #8

sdsnatcher opened this issue Sep 26, 2021 · 1 comment
Labels
question Further information is requested

Comments

@sdsnatcher
Copy link

sdsnatcher commented Sep 26, 2021

How can I attach an external debugger (like VSCode) to debug a .js extension for Tiled I'm currently working?

The javascript "debugger" command also just shows "Unimplemented code" on the Tiled console. IMHO, it should pause the script execution so you can connect a debugger and continue in step-by-step.

@bjorn
Copy link
Member

bjorn commented Sep 28, 2021

Unfortunately I think this is currently not possible. The only way I can find to debug JS code running in a QQmlEngine would be to use Qt Creator, compile Tiled yourself with "QML debugging and profiling" enabled, and then use the QML debugger in Qt Creator. However, I just tried to get this to work without success. See https://doc.qt.io/qtcreator/creator-debugging-qml.html if you want to try this yourself.

Otherwise, there is issue https://bugreports.qt.io/browse/QTBUG-55905 open about this kind of functionality, but it's been open for 5 years now so I don't expect such a solution to be implemented anytime soon. :-(

@bjorn bjorn added the question Further information is requested label Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants