forked from qt-creator/qt-creator
Debugger: Prepend additional info to cdb exception task entry
Most users expect build related entries in the Issues pane, so prepend debugger related exception entries with a prefix making clear that these entries are not build related. Task-number: QTCREATORBUG-17806 Change-Id: I8a78c1eff3a4386f108997954329b694c223400f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
cf40d98dc9
commit
c73bcd32a8
@@ -2320,7 +2320,9 @@ void CdbEngine::handleExtensionMessage(char t, int token, const QString &what, c
|
||||
isFatalWinException(exception.exceptionCode) ? Task::Error : Task::Warning;
|
||||
const FileName fileName = exception.file.isEmpty()
|
||||
? FileName() : FileName::fromUserInput(exception.file);
|
||||
TaskHub::addTask(type, exception.toString(false).trimmed(),
|
||||
const QString taskEntry = tr("Debugger encountered an exception: %1").arg(
|
||||
exception.toString(false).trimmed());
|
||||
TaskHub::addTask(type, taskEntry,
|
||||
Debugger::Constants::TASK_CATEGORY_DEBUGGER_RUNTIME,
|
||||
fileName, exception.lineNumber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user