forked from qt-creator/qt-creator
Debugger: Some Python 3 support for PdbEngine
Change-Id: I052bc093086a5da0b2cbd4e99df32e42627ceaf5 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -401,7 +401,9 @@ DebuggerRunControl *DebuggerRunControlFactory::doCreate
|
||||
}
|
||||
|
||||
if (sp.masterEngineType == NoEngineType) {
|
||||
if (sp.executable.endsWith(_(".py")) || sp.executable == _("/usr/bin/python")) {
|
||||
if (sp.executable.endsWith(_(".py"))
|
||||
|| sp.executable == _("/usr/bin/python")
|
||||
|| sp.executable == _("/usr/bin/python3")) {
|
||||
sp.masterEngineType = PdbEngineType;
|
||||
} else {
|
||||
if (RunConfiguration *rc = sp.runConfiguration) {
|
||||
|
Reference in New Issue
Block a user