StevenP wrote: . . . . . . I have had quite good success using:
Code: Select all
sudo apt-get install geany-plugins
Then in Geany select :
Tools/Plugin Manager/Geany GDB (
NOT Debugger!)
Also the compiler switch '-g' needs to be present to produce the debug version of the executable. I did this in the project's makefile:
CFLAGS=-g
Which seemed to work OK, but maybe it could also be done in:
Build/set build commands/Build/C commands ?
I then got a new panel and drop-down menu for debugging.
. . . . . . . in the debug panel, 'Options', I set Terminal to lxterminal.
In the debug panel, I clicked 'Load', selected my executable.
So I did: sudo apt-get install geany-plugins - took a long time but no problems.
Then: Tools/Plugin Manager/Geany GDB - no problem.
At the suggestion: Also the compiler switch '-g' needs to be present - don't know where to do this????
Then: in the debug panel, 'Options', I set Terminal to lxterminal - OK, no problem.
Then: In the debug panel, I clicked 'Load', selected my executable (tkphone.py) - problem:
Error: Target file must be ELF 32-bit x86 executable
More information:
I have just learned to spell python in the last few days, so consider myself a newbie - please assist.
I have edited some things in tkphone.py and it runs ok in interpreter mode with geany and idle.
Debug mode in idle runs ok, but I do not understand how to get the geany debugger to work.
I have tried both idle and geany in an attempt to decide which ide, and debugger, is best suited to my needs.
(My needs are minimal: a background in many languages and now programming as a hobby: quick results!)
Idle suits me, but the lack of line numbers in the editor is a big disadvantage.
Geany editor appears to be better and, of course, there are the line numbers.
So, my immediate questions are:
1) which editor and debugger are considered suitable for a hobbyist (student at junior school too)?
2) if geany is really more suitable, how do we get the debugger to work?
Any additional information, or pointers/links to more information are very welcome.