Idle suits me, but the lack of line numbers in the editor is a big disadvantage. (My needs are minimal: a background in many languages and now programming as a hobby: quick results!) I have tried both idle and geany in an attempt to decide which ide, and debugger, is best suited to my needs. I have edited some things in tkphone.py and it runs ok in interpreter mode with geany and idle.ĭebug mode in idle runs ok, but I do not understand how to get the geany debugger to work. I have just learned to spell python in the last few days, so consider myself a newbie - please assist. Then: In the debug panel, I clicked 'Load', selected my executable (tkphone.py) - problem:Įrror: Target file must be ELF 32-bit x86 executable Then: in the debug panel, 'Options', I set Terminal to lxterminal - OK, no problem. Then: Tools/Plugin Manager/Geany GDB - no problem.Īt the suggestion: Also the compiler switch '-g' needs to be present - don't know where to do this? So I did: sudo apt-get install geany-plugins - took a long time but no problems. ![]() in the debug panel, 'Options', I set Terminal to lxterminal. It's not rock solid - I had to kill and restart Geany several times - but it is a very useful tool for debugging when you are stuck. That's my experience so far with Geany GDB. You can also select a variable in the editor, then click 'Watches' to watch that variable for changes. c file and clicked 'Break' to set set a breakpoint there. In the debug panel, I clicked 'Load', selected my executable. Alternatively you uncheck the 'run in terminal' box. To overcome the terminal error message: in the debug panel, 'Options', I set Terminal to lxterminal. I then got a new panel and drop-down menu for debugging. Which seemed to work OK, but maybe it could also be done in:īuild/set build commands/Build/C commands ? Tools/Plugin Manager/Geany GDB ( NOT Debugger!)Īlso the compiler switch '-g' needs to be present to produce the debug version of the executable. ![]() Code: Select all sudo apt-get install geany-plugins
0 Comments
Leave a Reply. |