Skip to content

Commit

Permalink
Debugger: Activate debug mode when loading is done
Browse files Browse the repository at this point in the history
When Creator is executed with -debug (core or executable) and a project, the
core dump is opened, but the mode is switched to Edit when the project opens,
while the user expects debug mode.

Switch to debug mode when loading is done.

Change-Id: I2a6b18c9ff90605840fc53a6b23dee1e8d4d4e2c
Reviewed-by: hjk <[email protected]>
  • Loading branch information
orgads committed Dec 15, 2015
1 parent e99aaf2 commit d7f255b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/debugger/debuggerplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,7 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
setProxyAction(m_visibleStartAction, Id(Constants::INTERRUPT));
m_hiddenStopAction->setAction(m_interruptAction);
m_localsAndExpressionsWindow->setShowLocals(false);
activateDebugMode();
} else if (state == DebuggerFinished) {
Project *project = SessionManager::startupProject();
const bool canRun = ProjectExplorerPlugin::canRun(project, ProjectExplorer::Constants::DEBUG_RUN_MODE);
Expand All @@ -1967,6 +1968,7 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
m_hiddenStopAction->setAction(m_exitAction);
// show locals in core dumps
m_localsAndExpressionsWindow->setShowLocals(true);
activateDebugMode();
} else {
// Everything else is "undisturbable".
m_interruptAction->setEnabled(false);
Expand Down

0 comments on commit d7f255b

Please sign in to comment.