debugger: add a context menu action to the stackview to create a full

backtrace in the main editor.

Useful for sending bug reports.
This commit is contained in:
hjk
2010-03-29 18:44:02 +02:00
parent 89196e5c6a
commit c3afba0f0d
10 changed files with 53 additions and 3 deletions

View File

@@ -1233,6 +1233,18 @@ void DebuggerPlugin::gotoLocation(const QString &file, int line, bool setMarker)
}
}
void DebuggerPlugin::openTextEditor(const QString &titlePattern0,
const QString &contents)
{
QString titlePattern = titlePattern0;
EditorManager *editorManager = EditorManager::instance();
QTC_ASSERT(editorManager, return);
Core::IEditor *editor = editorManager->openEditorWithContents(
Core::Constants::K_DEFAULT_TEXT_EDITOR_ID, &titlePattern, contents);
QTC_ASSERT(editor, return);
editorManager->activateEditor(editor);
}
void DebuggerPlugin::handleStateChanged(int state)
{
// Prevent it from beeing triggered on setup.