forked from qt-creator/qt-creator
Debugger: Remove assert
It is perfectly valid for a kit to not have a debugger. Do not soft-assert in that case. Change-Id: I89b7a125935188c0ce9479ea68cd403b59e72563 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -335,8 +335,9 @@ KitInformation::ItemList DebuggerKitInformation::toUserOutput(const Kit *k) cons
|
||||
FileName DebuggerKitInformation::debuggerCommand(const Kit *k)
|
||||
{
|
||||
const DebuggerItem *item = debugger(k);
|
||||
QTC_ASSERT(item, return FileName());
|
||||
return item->command();
|
||||
if (item)
|
||||
return item->command();
|
||||
return FileName();
|
||||
}
|
||||
|
||||
DebuggerEngineType DebuggerKitInformation::engineType(const Kit *k)
|
||||
|
||||
Reference in New Issue
Block a user