[Qt-creator] check if debugger is running

Knut Petter Svendsen knutpett+qtcreator at pvv.org
Tue Oct 31 14:57:49 CET 2023


Hi!

In my plugin, I've established a slot connected to the
EditorManager::currentEditorChanged signal. I'm looking for a way to
determine if I'm presently in a debugging session within this slot. This
distinction is important as I intend to perform different actions based on
this context.

Although checking Core::ModeManager::currentModeId() against
Debugger::Constants::MODE_DEBUG allows me to ascertain if I'm in debugging
mode, it doesn't inform me whether the debugger is actively running.

Knut



More information about the Qt-creator mailing list