切换到宽版
  • 28545阅读
  • 8回复

谁能讲讲devc++如何单步调试 [复制链接]

上一主题 下一主题
离线jy00354025
 
只看楼主 正序阅读 0 发表于: 2006-11-10
谁能讲讲devc++如何单步调试 注意他的单步调试有问题 无法一步一步的执行 如果我选择djgpp在自己机子上装是否要设置这一下环境和文件路径 请教我
离线qianjigui
只看该作者 8 发表于: 2006-12-02
个人感觉dec的调试工具非常垃圾!连个数组的查看还多次产生结果。唉......
离线edwing
只看该作者 7 发表于: 2006-11-15
我用DEV-C++做调试是很简单的。
先这下开始调试的行,“运行到光标处”,再“下一步”,就这样逐步看结果就行了。
通常大部分错误都是我自己看出来的,并不是调试功能起的作用。
这样做也是因为我也不知道如何做才是真正的调试,怎么样才能真正应用调试功能。
希望哪位大哥可以解释说明一下。
离线edwing
只看该作者 6 发表于: 2006-11-15
这里主要是说怎么安装DJGPP。
将你在DJGPP网站上下载的所有压缩包放在C:\DJGPP\
然后运行下面的命令即可:
C:\DJGPP> unzip32 djdev203.zip
C:\DJGPP> unzip32 faq230b.zip
C:\DJGPP> unzip32 rhid15ab.zip
C:\DJGPP> unzip32 bnu2161b.zip
C:\DJGPP> unzip32 gcc410b.zip
C:\DJGPP> unzip32 gdb611b.zip
C:\DJGPP> unzip32 gpp410b.zip
C:\DJGPP> unzip32 mak3791b.zip
C:\DJGPP> unzip32 txi48b.zip
这些都将压缩包解压的命令,解压完成后,在DJGPP文件夹里面运行BIN\SETDJGPP之后,再运行RHIDE就可以看到IDE的画面了。
离线stevenjl

只看该作者 5 发表于: 2006-11-11
DJGPP的安装:(是英文,很简单,应该可以看懂。如果看不懂可以再提出来,大家可以帮忙翻译)
Installation Instructions for winXP
Use Explorer to create a folder for DJGPP. My Computer, Drive C, File->New->Folder, "DJGPP".

Use djgpp's unzip32.exe to unzip all the zips you downloaded into the C:\DJGPP folder. Don't unzip them each into separate folders - unzip them all to the same place. The directory structure inside each zip file should be preserved, so you end up with files like c:\djgpp\bin\gcc.exe and c:\djgpp\include\stdio.h

C:\> mkdir djgpp
C:\> cd djgpp
C:\DJGPP> unzip32 d:\tmp\djdev203.zip
C:\DJGPP> unzip32 d:\tmp\faq230b.zip
C:\DJGPP> unzip32 d:\tmp\rhid15ab.zip
C:\DJGPP> unzip32 d:\tmp\bnu2161b.zip
C:\DJGPP> unzip32 d:\tmp\gcc410b.zip
C:\DJGPP> unzip32 d:\tmp\gdb611b.zip
C:\DJGPP> unzip32 d:\tmp\gpp410b.zip
C:\DJGPP> unzip32 d:\tmp\mak3791b.zip
C:\DJGPP> unzip32 d:\tmp\txi48b.zip

When properly installed, you should have a c:\djgpp\bin directory, and in it should be at least gcc.exe, as.exe, and stubify.exe. If all the files are in c:\djgpp with no subdirectories, or you see directories like c:\djgpp\djdev203\, you need to delete everything and try a different unzip program.

Make sure you use the djgpp's unzip32, or some other unzip that doesn't support long file names. If you install with WinNT long file names, C++ programs won't compile. Another option is to use pkunzip instead (see the MS-DOS install instructions) or read the FAQ about the NameNumericTail registry key.

Right-click My Computer, select Properties. Select the Advanced tab, then the Environment Variables button. Edit the Path (or PATH, whichever exists) system variable to include C:\DJGPP\BIN at the front. (If you are not an administrator, add it to the PATH variable in the User Variables section, or add a new PATH user environment variable which contains only C:\DJGPP\BIN) Add a new variable DJGPP set to C:\DJGPP\DJGPP.ENV (system variable if possible, user variable if not an administrator) .

You'll need to close and reopen your MS-DOS windows for these changes to take effect.

Rather than edit your autoexec files and/or global environment, you may wish to create a djgpp shortcut instead. To do this, create a c:\djgpp\djgpp.bat that has lines like this:

@echo off
set PATH=c:\djgpp\bin;%PATH%
set DJGPP=c:\djgpp\djgpp.env
chdir c:\djgpp\mystuff   (or any other directory)
command

(you can replace that last line with any other shell you'd like)
Dream Walker...
离线stevenjl

只看该作者 4 发表于: 2006-11-11
考试的时候当然会给GDB,因为dev C++用的调试内核其实就是gdb,没有gdb,dev C++怎么工作?
Dream Walker...
离线jy00354025
只看该作者 3 发表于: 2006-11-10
可不可以讲一讲djgpp安装好了之后如何设置环境 考试时会给你gdb吗?
离线stevenjl

只看该作者 2 发表于: 2006-11-10
DEV C++调试还是可以调试的,但是要先用一次运行到当前位置
Dream Walker...
离线swj05652
只看该作者 1 发表于: 2006-11-10
devc++的调试功能实在比没有还要差
建议lz去学以下gdb的用法,功能很强的 (devc++附带的)
快速回复
限100 字节
 
上一个 下一个