1. sDebug() 输出更多信息

  • sdebug.h:```c

    ifndef SDEBUG_H

    define SDEBUG_H

include

define sDebug() qDebug() << QString(“[%1:%2:%3]: “).arg(FILE).arg(LINE).arg(FUNCTION)

endif // SDEBUG_H

  1. - 使用方法:
  2. -
  3. 1. 引入头文件: `#include "sdebug.h"`
  4. -
  5. 2. 调用:
  6. ```c
  7. sDebug() << "this->statusLoadList.count():" << this->statusLoadList.count();
  1. "[../VPan_1.4/mainwindow.cpp:1856:setStatusBarLoadStatus]: " this->statusLoadList.count(): 4