QtCreator调试暂停在代码未汇编时停止 [英] QtCreator debug pause stop at code not assembly
本文介绍了QtCreator调试暂停在代码未汇编时停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何配置QtCreator,以便在调试并按暂停时将显示当前正在处理的代码(现在显示程序集)。
How can I configure QtCreator so that when I'm debugging and I press pause it would show the code it is currently processing (now it shows assembly). Couldn't find an answer anywhere about this.
我正在使用Windows7。
I am using Windows 7.
推荐答案
我在Ubuntu 16.04中使用Qt Creator 4.2.2遇到此问题。其中一个步骤可以解决您的问题:
I have this problem with Qt Creator 4.2.2 in Ubuntu 16.04. One of the steps can solve your problem:
- 尝试在左上角使用编译模式进行
Debug
模式 - 在调试时,尝试关闭选项
Debug->按说明操作
。 - 尝试切换选项
Tools-> Debugger->使用完整的绝对路径设置断点
。 - 尝试在窗口
源路径映射
(Tools-> Debugger中添加Qt Src路径->添加Qt源
) - 在项目和构建目录路径中仅使用ASCII符号。
- Try to swith compile mode in the left corner to
Debug
mode - Try to switch off option
Debug->Operate by instruction
, when you debugging. But it doesn't work for me. - Try to switch option
Tools->Debugger->Set breakpoint using full absolute path
. - Try to add your Qt Src path in window
Source Path Mapping
(Tools->Debugger->Add Qt sources
) - Use only ASCII symbols in your 'project' and 'build' directory paths.
在第5步之后,在src模式下进行了魔术和gdb成功工作。
After step 5, there was magic and gdb sucess work in src mode.
这篇关于QtCreator调试暂停在代码未汇编时停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文