diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-29 14:41:26 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-11-29 22:05:49 +0100 |
commit | a14e7549c4a3faece3474f059b2d04005cfc7cbf (patch) | |
tree | 3ce4903154e98aec5d952e5cdd067a7cb1b33aff /qmljs_engine.h | |
parent | 36356a4b273e19ca599bf2a0cbfb02fda69e6c0a (diff) |
Add some debugging infrastructure to the interpreter.
This currently mainly intended to be useful in a C++ debugger. The
infrastructure makes it a lot easier to access (parent) contexts, find
function names, etc.
Change-Id: I0493d3a3bd4bf5c3a03379c1a2b545ed76862cd5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r-- | qmljs_engine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h index dcae173fef..9b91f01c04 100644 --- a/qmljs_engine.h +++ b/qmljs_engine.h @@ -47,6 +47,11 @@ #include <setjmp.h> namespace QQmlJS { + +namespace Debugging { +class Debugger; +} // namespace Debugging + namespace VM { struct Value; @@ -87,6 +92,8 @@ struct ExecutionEngine ExecutionContext *current; ExecutionContext *rootContext; + Debugging::Debugger *debugger; + Value globalObject; Value objectCtor; @@ -184,7 +191,6 @@ struct ExecutionEngine Object *newForEachIteratorObject(Object *o); }; - } // namespace VM } // namespace QQmlJS |