Base::Debugger Class Reference

This is a utility class to break the application at a point to inspect e.g. More...

#include <Debugger.h>

Public Slots

void quit ()
 

Public Member Functions

void attach ()
 
 Debugger (QObject *parent=nullptr)
 
void detach ()
 
bool eventFilter (QObject *, QEvent *)
 
int exec ()
 
 ~Debugger ()
 

Detailed Description

This is a utility class to break the application at a point to inspect e.g.

the result of an algorithm. You usually use it like this

...
Base::Debugger dbg;
dbg.attach();
dbg.exec();
...

Or you can connect it with a button and let the user click it in order to continue.

QPushButton* btn = new QPushButton();
btn->setText("Continue");
btn->show();
connect(btn, SIGNAL(clicked()), &dbg, SLOT(quit()));
dbg.exec();
Author
Werner Mayer

Constructor & Destructor Documentation

◆ Debugger()

Debugger::Debugger ( QObject parent = nullptr)

◆ ~Debugger()

Debugger::~Debugger ( )

Member Function Documentation

◆ attach()

void Debugger::attach ( )

◆ detach()

void Debugger::detach ( )

◆ eventFilter()

bool Debugger::eventFilter ( QObject ,
QEvent event 
)

◆ exec()

int Debugger::exec ( )

◆ quit

void Debugger::quit ( )
slot

The documentation for this class was generated from the following files: