如何配置qt创建者来显示C ++代码而不是反汇编程序? [英] How to configure qt creator to show C++ codes rather than disassembler?

查看:516
本文介绍了如何配置qt创建者来显示C ++代码而不是反汇编程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我做了很多事情,比如更新GCC,Clang并重新安装Qt Creator.Today在逐步调试代码时,调试器显示的是反汇编程序,而不是我写的C ++代码。按 F10 F11 ,调试器在反汇编器中移动,不在 .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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆