[Qt-creator] QmlJSDebugger plugin got merged into Debugger plugin (master branch)

andre.poenitz at nokia.com andre.poenitz at nokia.com
Wed May 9 15:05:18 CEST 2012


Konstantin Tokarev wrote:
> I think it would be more useful to expose this functionality from Debugger to facilitate 
> support for debugging of other languages in future.

The interface to debug other languanges is already there, it's "DebuggerEngine" (currently
implemented by GdbEngine, CdbEngine, QmlEngine, QmlCppEngine, QScriptEngine,
PdbEngine, and LlldbEngine)

The PdbEngine is a proof-of-concept "other language" implementation by interfacing
pdb to debug Python (see debugger/pdb/*), and compiled stuff like Fortran or D that's
accessible using gdb/cdb "accidentally" works by falling back to the Gdb/CdbEngines.

Qml is a bit special because of the hybrid m^Hnature, but even there the "combined"
QmlCppEngine implements the DebuggerEngine interface, and redirects most operations to
two child engines, a "pure" C++ (i.e. GdbEngine or CdbEngine) and a "pure" QmlEngine,
and presents a "combined" state to the outside world.

Some cleanup in the engine registration/selection process might be in order, but in general
I think the facilites are there and functional.

Andre'


More information about the Qt-creator mailing list