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:
hjk
2015-02-13 23:15:28 +01:00
parent 5b5192d344
commit 5c58293a36
4 changed files with 47 additions and 32 deletions

View File

@@ -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) {