forked from qt-creator/qt-creator
Debugger: Transform DebuggerRunParameters::isPythonDebugging
Task-number: QTCREATORBUG-29168 Change-Id: Iea8ef661bbb580fec94069d1fa96709025378e59 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -149,7 +149,7 @@ DebuggerRunParameters DebuggerRunParameters::fromRunControl(ProjectExplorer::Run
|
|||||||
if (!aspect->useCppDebugger)
|
if (!aspect->useCppDebugger)
|
||||||
params.m_cppEngineType = NoEngineType;
|
params.m_cppEngineType = NoEngineType;
|
||||||
params.m_isQmlDebugging = aspect->useQmlDebugger;
|
params.m_isQmlDebugging = aspect->useQmlDebugger;
|
||||||
params.isPythonDebugging = aspect->usePythonDebugger;
|
params.m_isPythonDebugging = aspect->usePythonDebugger;
|
||||||
params.multiProcess = aspect->useMultiProcess;
|
params.multiProcess = aspect->useMultiProcess;
|
||||||
params.m_additionalStartupCommands = aspect->overrideStartup;
|
params.m_additionalStartupCommands = aspect->overrideStartup;
|
||||||
|
|
||||||
|
@@ -182,7 +182,7 @@ public:
|
|||||||
|
|
||||||
QString version() const { return m_version; }
|
QString version() const { return m_version; }
|
||||||
|
|
||||||
bool isPythonDebugging = false;
|
bool isPythonDebugging() const { return m_isPythonDebugging; }
|
||||||
bool breakOnMain = false;
|
bool breakOnMain = false;
|
||||||
bool multiProcess = false; // Whether to set detach-on-fork off.
|
bool multiProcess = false; // Whether to set detach-on-fork off.
|
||||||
bool useTerminal = false;
|
bool useTerminal = false;
|
||||||
@@ -286,6 +286,8 @@ private:
|
|||||||
DebuggerEngineType m_cppEngineType = NoEngineType;
|
DebuggerEngineType m_cppEngineType = NoEngineType;
|
||||||
|
|
||||||
QString m_version;
|
QString m_version;
|
||||||
|
|
||||||
|
bool m_isPythonDebugging = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
@@ -372,7 +372,7 @@ void DebuggerRunTool::continueAfterDebugServerStart()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_runParameters.isPythonDebugging)
|
if (m_runParameters.isPythonDebugging())
|
||||||
m_engines << createPdbEngine();
|
m_engines << createPdbEngine();
|
||||||
|
|
||||||
if (m_runParameters.isQmlDebugging())
|
if (m_runParameters.isQmlDebugging())
|
||||||
|
Reference in New Issue
Block a user