[texworks] Qtscript debugger doesn't open
Stefan Löffler
st.loeffler at gmail.com
Mon Feb 19 16:21:13 CET 2024
Hi,
On 19.02.24 13:19, Jean Hare wrote:
> On a freshly (re)-installed Windows box, I encounter a new problem :
> when an error occurs in a (JS) script, the Qtscript debugger never
> opens,
> and I get only a small alert box.
>
> Of course, I have enabled the corresponding checkbox in
> Preferences>>Scripts
> I read the mailing list archive, and various docs by Paul A Norman (a
> big thank you to him too).
> I also fiddled with the security options, without success.
>
> This behavior is common to official -TUG) 0.6.8 and 0.6.9 versions,
> to up-to-date miktex packaged version (0.6.8)
> and to a prerelease 0.7.0 version.
>
> On several (older) Win 10 PC that I tested, this works perfectly with
> all the quoted versions.
This is weird - it (probably) shouldn't.
Some background: a while back, we moved from Qt5 to Qt6. Qt6 comes with
a new javascript engine, that unfortunately doesn't have a built-in
debugger, yet (see https://bugreports.qt.io/browse/QTBUG-55905).
Therefore, I'm surprised it worked for you with the newest Tw versions
on some (older) Win10 PCs.
That said, there also is a legacy version of Tw which is still built
with (obsolete and unsupported) Qt5. This is intended primarily for old
operating systems no longer supported by Qt6 (e.g., Win7, Win8), and
generally shouldn't be run on modern PCs, but it does come with the old
scripting engine with the debugger.
FWIW, you can check which version of Qt is used in the Help > About
TeXworks... dialog.
HTH
Stefan
More information about the texworks
mailing list.