如何配置qt创建者来显示C ++代码而不是反汇编程序? [英] How to configure qt creator to show C++ codes rather than disassembler?
问题描述
.cpp
或中。 h
我写的文件。 F11 只能进入库文件,但不能进入我写的文件。 箭头出现在反汇编器中:
而不是在main.cpp中:
配置Qt Creator,使调试箭头跟踪C ++代码中的每一行?
最后,我发现它是Cl ang已造成这个问题。将套件更换回使用gcc后,它工作正常。但是不知道是Clang的错,还是Qt编译的脚本有什么问题。无论如何,只要将答案放在这里,以防其他任何可能遇到同样情况的人。
Yesterday I had done a lot of things like updating GCC,Clang and reinstalling Qt Creator.Today when debugging my codes step by step, the debugger was showing the disassembler rather than the C++ codes I wrote. Pressing F10 or F11, the debugger was moving in disassembler not in .cpp
nor .h
files I wrote. F11 can only go into the library files but never into the files I wrote.
The arrow appeared in disassembler:
Rather than in main.cpp:
How to configure Qt Creator such that the debugging arrow tracks each line in the C++ codes?
At last, I found that it was Clang that had caused this problem. After changed the kit back to using gcc, it just worked fine. But not sure whether it's Clang's fault or that the script Qt produced for compiling has any problem. Anyway just put the answer here in case anyone else who might encounter the same situation.
这篇关于如何配置qt创建者来显示C ++代码而不是反汇编程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!