How to execute my C program line by line in geany as in turbo C

自古美人都是妖i 提交于 2019-12-06 21:33:25
rohankvashisht

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

  1. Step 1:

    Install Optional Add Ons:

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

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

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

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

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

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.


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).



Reference:
1. http://plugins.geany.org/debugger.html
2. http://ubuntuforums.org/showthread.php?t=1400668
3. http://betterexplained.com/articles/debugging-with-gdb/
4. Line by line c - c++ code debugging in Linux ubuntu
5. http://www.yolinux.com/TUTORIALS/GDB-Commands.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!