forked from qt-creator/qt-creator
debugger: add widget watchers by mouse click in the debugged application.
The option is hidden in the context menu. Currently the application must be stopped.
This commit is contained in:
@@ -434,7 +434,8 @@ void DebuggerManager::init()
|
||||
|
||||
connect(theDebuggerAction(ExecuteCommand), SIGNAL(triggered()),
|
||||
this, SLOT(executeDebuggerCommand()));
|
||||
|
||||
connect(theDebuggerAction(WatchPoint), SIGNAL(triggered()),
|
||||
this, SLOT(watchPoint()));
|
||||
|
||||
m_breakDock = createDockForWidget(m_breakWindow);
|
||||
|
||||
@@ -1089,6 +1090,13 @@ void DebuggerManager::nextIExec()
|
||||
m_engine->nextIExec();
|
||||
}
|
||||
|
||||
void DebuggerManager::watchPoint()
|
||||
{
|
||||
if (QAction *action = qobject_cast<QAction *>(sender()))
|
||||
if (m_engine)
|
||||
m_engine->watchPoint(action->data().toPoint());
|
||||
}
|
||||
|
||||
void DebuggerManager::executeDebuggerCommand()
|
||||
{
|
||||
if (QAction *action = qobject_cast<QAction *>(sender()))
|
||||
|
||||
Reference in New Issue
Block a user