![]() ![]() Geany editor appears to be better and, of course, there are the line numbers.ġ) which editor and debugger are considered suitable for a hobbyist (student at junior school too)?Ģ) if geany is really more suitable, how do we get the debugger to work?Īny additional information, or pointers/links to more information are very welcome. Idle suits me, but the lack of line numbers in the editor is a big disadvantage. Geany is the only linux GUI editor that store and restore every cursor position on every open document in and between sessions (a la Notepad++ on Windows). (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. When I see the properties of the executable, it doesn't say "executable" in the file type but "object code" file type.Code: Select all sudo apt-get install geany-plugins Matrix-ir_receiver: cannot execute binary file: Exec format error Matrix-ir_receiver: Permission deniedĪfter that I press Enter and the terminal closes.Īs you can see, I couldn't run the executable as root user, after that I saw properties of the program and noted that the permissions was set to "fa" on group "fa", changed all to root on group root it. The response of the console when I try to run the program is: provided by friendlyarm, I decided to modify the original demo program to match de embedded ir receiver but when I try to ececute the program, the information that I have until now is: Hello everyone, I have some problems with the example of the ir receiver on a Nanopi M1 usign the geany editor with the debian jessie 3.4. ![]()
0 Comments
Leave a Reply. |