QML JS Debugger: ensure we get the right Debugger UI

When a break point is hit, switch to the C++ debugger ui that
contains all the good widget for debugging.

This is a temporary fix, later the different engine should be
able to enable/disable part of the debugger ui as they whish
This commit is contained in:
Olivier Goffart
2010-07-23 15:26:58 +02:00
parent fca9ca4602
commit 69c04d916c

View File

@@ -33,6 +33,7 @@
#include "debuggerplugin.h"
#include "debuggerdialogs.h"
#include "debuggerstringutils.h"
#include "debuggeruiswitcher.h"
#include "breakhandler.h"
#include "moduleshandler.h"
@@ -73,10 +74,6 @@
#endif
# define XSDEBUG(s) qDebug() << s
#define CB(callback) &QmlEngine::callback, STRINGIFY(callback)
//#define USE_CONGESTION_CONTROL
namespace Debugger {
namespace Internal {
@@ -655,6 +652,11 @@ void QmlEngine::messageReceived(const QByteArray &message)
else
watchHandler()->endCycle();
//ensure we got the right ui right now
Debugger::DebuggerUISwitcher *uiSwitcher = Debugger::DebuggerUISwitcher::instance();
uiSwitcher->setActiveLanguage("C++");
} else if (command == "RESULT") {
WatchData data;
QByteArray iname;