Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
QT调试器';s表达式计算不能计算函数结果?_Qt - Fatal编程技术网

QT调试器';s表达式计算不能计算函数结果?

QT调试器';s表达式计算不能计算函数结果?,qt,Qt,当我使用QT调试器时,我在每个.first->currentIndex()上设置了一个断点: 我想知道each.first->count()的求值值,但我使用addexpression Evaluator,它只是将另一个each添加到求值器列表中,我仍然看不到值。QT的调试器中没有任何表达式求值函数吗?构建的优化级别是什么?即使在调试模式下构建时,某些东西也可以得到优化。您可以在项目文件中使用CONFIG,以确保您没有使用任何优化 如果这仍然不起作用,您可以在这个有限的范围内创建一个临时变量,

当我使用QT调试器时,我在
每个.first->currentIndex()
上设置了一个断点:


我想知道
each.first->count()
的求值值,但我使用
addexpression Evaluator
,它只是将另一个
each
添加到求值器列表中,我仍然看不到值。QT的调试器中没有任何
表达式求值
函数吗?

构建的优化级别是什么?即使在调试模式下构建时,某些东西也可以得到优化。您可以在项目文件中使用
CONFIG
,以确保您没有使用任何优化


如果这仍然不起作用,您可以在这个有限的范围内创建一个临时变量,并检查它的值(应该起作用)。一旦你发布了一个版本,它将被优化掉。

我在调试版本中,所以不应该优化掉任何东西。因此,我似乎只能插入一个局部变量来保存调试器的表达式值。