Commit da05ddc3 authored by Tobias Hunger's avatar Tobias Hunger

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: default avatarhjk <hjk@theqtcompany.com>
parent 3f4d107b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment