[Qtscript-bindings] QtScript Debugger

Kent Hansen khansen at trolltech.com
Thu Aug 21 20:35:15 CEST 2008


Richard Moore wrote:
> On Thu, Aug 21, 2008 at 1:07 PM, Ian Monroe <ian at monroe.nu> wrote:
>   
>> Is this debugger just an improved one over the debugger thats on the
>> lab site? Or is this just its first appearance in Qt itself?
>>     
>
> I think it's a evolution of the same code with more facilities and a
> stable API. It's now in a new scripttools module of Qt.
>   

Right.
>   
>> But yea that would be great if someone would put together a tarball
>> for it, so Amarok could depend on it. Currently I have to throw try{}
>> catch{}'s everywhere to debug scripts.
>>     
>
> Me too. Kent thought the backport should be visible.
>
> Rich

Actually I did add some API to the QtScript core that the debugger uses 
(like getting/setting the scope chain associated with a QScriptContext). 
But it should be a matter of #if'ing the Qt version a few places and 
provide a reasonable fallback when compiling against 4.4. Why not create 
a .pro file that pulls in $QTDIR/src/scripttools/debugging/debugging.pri 
and see how far the build gets (no, I don't want to be the first to try 
it). :-)

By the way, the Labs project won't be updated anymore now, it's way too 
out of sync with the version that's in Qt.

Kent



More information about the Qtscript-bindings mailing list