[Seek Help] 好奇深度不用qDebug的吗????
Tofloor
poster avatar
ChenX
deepin
2021-02-03 01:18
Author

描述见标题,大家都知道,没什么说的,只是好奇深度不用qDebug吗,?????用std::cout 每次都要把QString转换成std::string好麻烦用..........我像要QDebug。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

(Expired, see the results below)
10 users voted
1.??????(6 votes)
60 %
2.????(4 votes)
40 %
Reply Favorite View the author
All Replies
ChenX
deepin
2021-02-03 01:19
#1

那个投票忽略,好久没用了,刚开始没弄懂操作。。。

Reply View the author
偕臧
deepin
2021-02-03 01:48
#2

你搜一下 https://github.com/linuxdeepin ,就会发现大量的 qdebug 以及标准的 log 模块使用;本质都是输入输出流

Reply View the author
海天鹰
deepin
2021-02-03 04:01
#3

Bug未修复前,使用qWarning代替。

Reply View the author
Hello
deepin
2021-02-03 04:08
#4
偕臧

你搜一下 https://github.com/linuxdeepin ,就会发现大量的 qdebug 以及标准的 log 模块使用;本质都是输入输出流

老兄,你们的qdebug快点修复啊。。。我们不想每次都转换成std::string啊

Reply View the author
Hello
deepin
2021-02-03 04:10
#5
偕臧

你搜一下 https://github.com/linuxdeepin ,就会发现大量的 qdebug 以及标准的 log 模块使用;本质都是输入输出流

他是在吐槽你们更新后qdebug()流被阻断了。。。。你不会真以为他是以为你们不用qdebug()吧。。。。

Reply View the author
忘记、过去
deepin
2021-02-03 04:16
#6
偕臧

你搜一下 https://github.com/linuxdeepin ,就会发现大量的 qdebug 以及标准的 log 模块使用;本质都是输入输出流

自从 1003 内测开始 qDebug() 就已经没有输出了......现在暂时只能 cout 顶着了......

Reply View the author
偕臧
deepin
2021-02-03 04:21
#7
忘记、过去

自从 1003 内测开始 qDebug() 就已经没有输出了......现在暂时只能 cout 顶着了......

看下 /etc/X11/Xsession.d/00deepin-dde-env ;其中 QT_LOGGING_RULES="*.debug=true"的话。。。所有的qtdebug日志就会打印, 把这一行注释掉即可。然后在重启; 你看下你的写的什么???

QtCreator 看  

明天问下它们,看是咋回事

Reply View the author
Hello
deepin
2021-02-03 20:26
#8
偕臧

看下 /etc/X11/Xsession.d/00deepin-dde-env ;其中 QT_LOGGING_RULES="*.debug=true"的话。。。所有的qtdebug日志就会打印, 把这一行注释掉即可。然后在重启; 你看下你的写的什么???

QtCreator 看  

明天问下它们,看是咋回事

靠,false,你们能干的出来的啊

Reply View the author
Hello
deepin
2021-02-03 20:27
#9
Hello

靠,false,你们能干的出来的啊

 export QT_LOGGING_RULES="*.debug=false";

你们是故意的吗?

Reply View the author
忘记、过去
deepin
2021-02-03 20:59
#10
偕臧

看下 /etc/X11/Xsession.d/00deepin-dde-env ;其中 QT_LOGGING_RULES="*.debug=true"的话。。。所有的qtdebug日志就会打印, 把这一行注释掉即可。然后在重启; 你看下你的写的什么???

QtCreator 看  

明天问下它们,看是咋回事

啊这......源里面安装的 Qt 5.11.3 就这样,如果是为了深度系列应用不输出 Debug 信息的话也有点离谱啊......

Reply View the author
偕臧
deepin
2021-02-04 00:46
#11

@ z_2018  @ cht  @ 忘记、过去 好像是某一次优化时候,被打开了,后来应该又设置回去了的。

Reply View the author
ChenX
deepin
2021-02-04 03:52
#12
It has been deleted!
houyawei
deepin
2021-02-04 23:06
#13

原来是这样啊,我一直用qInfo()代替着

Reply View the author
海天鹰
deepin
2021-02-04 23:17
#14
忘记、过去

啊这......源里面安装的 Qt 5.11.3 就这样,如果是为了深度系列应用不输出 Debug 信息的话也有点离谱啊......

原来 Qt Creator 里面有个 System Information 检查环境变量!

Reply View the author
海天鹰
deepin
2021-02-04 23:23
#15
偕臧

看下 /etc/X11/Xsession.d/00deepin-dde-env ;其中 QT_LOGGING_RULES="*.debug=true"的话。。。所有的qtdebug日志就会打印, 把这一行注释掉即可。然后在重启; 你看下你的写的什么???

QtCreator 看  

明天问下它们,看是咋回事

终于修好了!

Reply View the author