How to execute my C program line by line in geany as in turbo C
I switched to Linux Mint from Windows 7 and now I use Geany to write programs in it.
As I said in the question that I want to execute my program line by line in Geany. At runtime, is there a way where I can see the value of the variables in Geany ?.
I use Geany because it is light weight and has a built-in terminal, compiler, doodles, etc. which is very easy to use ...
source to share
Install Geady Debugger Plugin and then you can execute your program line by line easily.
-
Step 1:
Installing additional add-ons:
- GDB GUI for geany
-
set of plugins for geany
from Ubuntu Software or whatever you have that do a similar job
2. Step 2: Go to Main Menu
> Tools
>Plugin Manager
3.Step 3: Set Debugger to active by checking the checkbox and then click OK
Now you can see the Debug option at the bottom of geany:
4. Step 4: Now I think the rest of the debugging is simple - just select the file and load it into the debugger and there you will have all the options, including breakpoints and line-by-line.
Note:
Don't forget that you now have a debug terminal, you can use any of the gdb (I think you have a GDB debugger) commmands right away. By the way, don't forget to check the links for full details (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. Debugging c-C ++ line code in Linux ubuntu
5. http://www.yolinux.com/TUTORIALS/GDB-Commands.html
source to share