forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user