How to debug correct constructor ?
-
Here is the class definition, it builds
m_serial(new QSerialPort(this)
how do I trace / debug which constructor of QSerialPort is actually used?Where do I to put "break point " ?
QSerialPort(QObject *parent = nullptr); ???I use "Follow symbol under cursor" but it does not help.
MainWindow_Bluetooth::MainWindow_Bluetooth(QWidget *parent) :
QMainWindow(parent),
m_ui(new Ui::MainWindow_Bluetooth),
m_status(new QLabel),
m_console(new Console),
m_settings(new SettingsDialog),
//! [1]
//! add rfcomm ??
m_serial(new QSerialPort(this))
//! [1]
{explicit QSerialPort(QObject *parent = nullptr);
explicit QSerialPort(const QString &name, QObject *parent = nullptr);
explicit QSerialPort(const QSerialPortInfo &info, QObject *parent = nullptr); -
Here is the class definition, it builds
m_serial(new QSerialPort(this)
how do I trace / debug which constructor of QSerialPort is actually used?Where do I to put "break point " ?
QSerialPort(QObject *parent = nullptr); ???I use "Follow symbol under cursor" but it does not help.
MainWindow_Bluetooth::MainWindow_Bluetooth(QWidget *parent) :
QMainWindow(parent),
m_ui(new Ui::MainWindow_Bluetooth),
m_status(new QLabel),
m_console(new Console),
m_settings(new SettingsDialog),
//! [1]
//! add rfcomm ??
m_serial(new QSerialPort(this))
//! [1]
{explicit QSerialPort(QObject *parent = nullptr);
explicit QSerialPort(const QString &name, QObject *parent = nullptr);
explicit QSerialPort(const QSerialPortInfo &info, QObject *parent = nullptr);@AnneRanch
You have to set the break point in the implementation, i.e. usually the cpp file.
The constructors listed are definitions ;-)
You probably want to debug the first one, which takes only a parent argument.