如何在代码块中进行调试? [英] How to debug in code blocks?

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

问题描述

我正在使用代码块编程,我设置了一些断点,但代码块似乎在我运行程序时忽略它们。



通过'启动程序'我的意思是只需点击(构建和运行)。



我在 Debug 下检查,看到 F8 不可用(开始/继续):





程序编译并运行正常,它只是忽略断点。任何人都知道如何解决这个问题?



我检查过这里,我认为建议的答案与我无关,因为在编译器设置中,我只是 C:\MinGW 编译器的安装目录



编辑:



我正在使用Windows 8 64bit,codeblocks 12.11

解决方案

我想你试图调试一个独立文件(不属于项目的文件)。 Code :: Blocks不支持调试这样的文件。尝试将要编译的文件作为空项目的一部分或其他东西。


I'm programming using code blocks, i set some breakpoints, but code blocks seems to ignore them when i run the program.

By 'start the program' i mean simply clicking (Build and run).

I checked under Debug and saw that F8 isn't available (Start / Continue):

The program compiles and runs fine, it just ignores breakpoints. Anybody knows how to solve this?

p.s i checked here and i think the suggested answer isn't relevant for me, because in Compiler settings i have just "C:\MinGW" under Compiler's installation directory.

edit:

i'm using windows 8 64bit , codeblocks 12.11

解决方案

I guess you were trying to debug a standalone file (file not belonging to a project). Code::Blocks doesn't support debugging such files. Try including the file to be compiled as a part of an empty project or something.

这篇关于如何在代码块中进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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