diff options
| author | David Schulz <david.schulz@qt.io> | 2017-11-07 12:39:46 +0100 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2017-11-07 13:08:42 +0000 |
| commit | ae40f434e8a53a45114b4fa42d755b831a76e74c (patch) | |
| tree | 6ec90bc6d3fb4e933505a0fe5a6ff2023f2d1c96 | |
| parent | 8eae8881cc6c9f6eb4638fe510e46a2975c66c42 (diff) | |
| download | qt-creator-ae40f434e8a53a45114b4fa42d755b831a76e74c.tar.gz | |
Debugger: Instruct the user to pick a debugger setting
When neither c++ nor qml debugging is enabled in the run page the
debugger wont start. Print a message to the Application Output pane
describing where the setting is located that enables debugging.
Change-Id: I580139e62c0fb0f4ae518ce818738165b80f8e0c
Reviewed-by: hjk <hjk@qt.io>
| -rw-r--r-- | src/plugins/debugger/debuggerruncontrol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index 9aceb8323c..93f3473c09 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -564,6 +564,11 @@ void DebuggerRunTool::start() cppEngine = createPdbEngine(); break; default: + if (!m_runParameters.isQmlDebugging) { + reportFailure(DebuggerPlugin::tr("Unable to create a debugging engine. " + "Please select a Debugger Setting from the Run page of the project mode.")); + return; + } // Can happen for pure Qml. break; } |
