如何在Qt Creator中使用调试器 [英] How to use debugger in Qt Creator

查看:482
本文介绍了如何在Qt Creator中使用调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Qt Creator for C ++项目(实际上不是Qt)。这可能是一个愚蠢的问题,但是如何在 Qt Creator 中使用调试器?我一直使用 CDB 以及VisualStudio或 gdb 以及类似 Code :: Blocks ,他们都直观的使用。当涉及到 Qt Creator 虽然,我没有希望!

I use Qt Creator for C++ projects (non-Qt actually). This might be a dumb question, but how do you manage to use the debugger in Qt Creator? I have been using CDB along with VisualStudio or gdb along with IDEs like Code::Blocks and they are all intuitive to use. When it comes to Qt Creator though, I'm hopeless!

例如,我试过放置断点,但是当我运行代码时,它只是跳过断点而不做任何事情!

For instance, I've tried putting breakpoints, but when I run the code, it just skips the breakpoints without doing anything! What am I doing wrong?

推荐答案


  • 您应该使调试目标,而不是释放

  • 您应该使用Debug菜单项开始调试,跳过,继续等,而不仅仅是运行

  • 希望它有帮助。

    这篇关于如何在Qt Creator中使用调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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