本文介绍了如何通过线geany执行我的C程序行中的Turbo C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从Windows 7转换到Linux Mint的,现在我用Geany来写C程序中了。

I have switched to Linux Mint from Windows 7 and now I am using Geany to write C programs in it.

当我在我想通过线Geany执行我的程序行提到的问题。在执行过程中有没有办法在那里我可以看到的变量Geany的价值?

As I mentioned in the question that I want to execute my program line by line in Geany. During execution is there a way where I can see the value of variables in Geany?.

,编译器,涂等,这是非常简单易用...

I am using Geany because it's light weight and it has an integrated terminal, compiler, scribble, etc. which is very simple to use...

推荐答案

Geany调试器插件然后你可以很容易地行执行程序行。
结果
结果

Install Geany Debugger Plugin and then you can easily execute your program line by line.


  1. 第1步:

  1. Step 1:

安装可选的附加部件:


  • 图形GDB前端为geany

  • 有关geany插件集

  • Graphical GDB Front end for geany
  • set of plugins for geany

从Ubuntu软件中心或任何你有做类似的工作。

from Ubuntu Software centre or anything you have which do similar job

2.Step 2:
转到主菜单> 工具> 插件管理器

2.Step 2:Go to Main Menu > Tools > Plugin Manager

3.Step 3:
设置调试器为主动通过选中复选框,然后单击O.K。

3.Step 3:Set Debugger to active by ticking the checkbox and then click O.K.

现在,你可能会看到geany底部调试选项:
结果

Now, you may see Debug option at the bottom of geany:

4.Step 4:
现在,我想调试的其余部分是很容易 - 只需选择该文件,并在调试器中加载有你有所有的选项,包括断点和行执行行

4.Step 4:Now, I think rest of the debugging is easy - just select the file and load it in the debugger and there you'll have all the options including breakpoints and executing line by line.

结果
注意:
结果
不要忘了,现在你已经得到了调试终端,可以马上使用任何GDB的(我想你有GDB调试器)commmands。顺便说一句,不要忘记检查出完整的详细参考链接(尤其是第2和第5)。


Note:
Don't forget that now you have got debug terminal, you can straight away use any of the gdb's (I am thinking you have GDB debugger) commmands. By the way, don't forget to check out the reference links for complete detail (especially the 2nd and 5th).

结果
结果
参考:
结果
1.
结果
2.
结果
3.
结果
4.

这篇关于如何通过线geany执行我的C程序行中的Turbo C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 14:56