Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug plugin doesn't work on my Mac #1019

Open
JustinCao86 opened this issue Oct 23, 2020 · 12 comments
Open

debug plugin doesn't work on my Mac #1019

JustinCao86 opened this issue Oct 23, 2020 · 12 comments

Comments

@JustinCao86
Copy link

image
As screenshot shown above, all the debug buttons are NOT available.
I just downloaded geany-1.36_osx-2.dmg from official website, and my Mac version is 10.15.7 Catalina.
I also have GDB 9.2 installed from MacPorts at /opt/local/bin, codesigned, working fine from terminal.
Here's the Debug Messages:

`
10:40:43: Geany INFO : Geany 1.36, C
10:40:43: Geany INFO : GTK 3.24.14, GLib 2.62.4
10:40:43: Geany INFO : System data dir: /Applications/Geany.app/Contents/Resources/share/geany
10:40:43: Geany INFO : User config dir: /Users/Justin/.config/geany
10:40:43: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
10:40:44: Geany INFO : Loaded GTK+ CSS theme '/Applications/Geany.app/Contents/Resources/share/geany/geany.css'
10:40:44: Geany INFO : Loaded GTK+ CSS theme '/Applications/Geany.app/Contents/Resources/share/geany/geany-3.20.css'
10:40:44: Geany INFO : System plugin path: /Applications/Geany.app/Contents/Resources/lib/geany
10:40:44: Geany INFO : Added filetype Clojure (61).
10:40:44: Geany INFO : Added filetype Swift (62).
10:40:44: Geany INFO : Added filetype Graphviz (63).
10:40:44: Geany INFO : Added filetype Nim (64).
10:40:44: Geany INFO : Added filetype Arduino (65).
10:40:44: Geany INFO : Added filetype Genie (66).
10:40:44: Geany INFO : Added filetype Cython (67).
10:40:44: Geany INFO : Added filetype TypeScript (68).
10:40:44: Geany INFO : Added filetype Groovy (69).
10:40:44: Geany INFO : Added filetype Kotlin (70).
10:40:44: Geany INFO : Added filetype Scala (71).
10:40:44: Geany INFO : Added filetype JSON (72).
10:40:44: Geany INFO : Added filetype CUDA (73).
10:40:44: Geany INFO : Loaded libvte from /Applications/Geany.app/Contents/Resources/lib/libvte-2.91.0.dylib
10:40:44: Geany INFO : Loaded: /Applications/Geany.app/Contents/Resources/lib/geany/debugger.so (Debugger)
10:40:44: Geany INFO : /Users/Justin/projects/TestGeany/cgnew.f : F77 (UTF-8)
10:40:44: Geany INFO : /Users/Justin/projects/TestGeany/main.f90 : Fortran (UTF-8)
10:40:44: Geany INFO : /Users/Justin/projects/TestGeany/modParamt.f90 : Fortran (UTF-8)
10:40:51: GLib DEBUG : posix_spawn avoided (workdir specified) (fd close requested)
10:42:46: GLib DEBUG : posix_spawn avoided (automatic reaping requested) (fd close requested)

`
It would be appreciated if someone could point out why this plugin doesn't work, or maybe there's some trick settings I should do first?

@elextr
Copy link
Member

elextr commented Oct 23, 2020

What actually "doesn't work", clearly from your screenshot the plugin runs? Did you try something debuggerish, like setting a breakpoint and running the program to see if it stops?

@JustinCao86
Copy link
Author

What actually "doesn't work", clearly from your screenshot the plugin runs? Did you try something debuggerish, like setting a breakpoint and running the program to see if it stops?

image
Thank you for replying. Here's the running screenshot, compile's fine, build's fine, and execute's fine, but how to start debug???
I've seen someone's instruction that points out the way to use this debug plugin, and that instruction clearly has those debug buttons available, but mine's not, that's the confusing part. (shown below)
image
As I'm new to Geany, I doubt if there're some settings that I haven't done yet......

@elextr
Copy link
Member

elextr commented Oct 23, 2020

I don't use the debugger plugin, but I'd guess that the buttons are not available because the debugger isn't running, try the lower right button.

@codebrainz
Copy link
Member

It's possible those icons are like that because your icon theme doesn't have the icons the Debugger plugin uses. You might try changing icon themes to some robust one like perhaps the default icon theme of your desktop environment.

@JustinCao86
Copy link
Author

I don't use the debugger plugin, but I'd guess that the buttons are not available because the debugger isn't running, try the lower right button.

Yeah, that was my guess too, the debugger doesn't load/run properly. The lower right button doesn't have much help, just one option, like this

image

@JustinCao86
Copy link
Author

It's possible those icons are like that because your icon theme doesn't have the icons the Debugger plugin uses. You might try changing icon themes to some robust one like perhaps the default icon theme of your desktop environment.

Not like that actually. The "Run" button just doesn't work.

@JustinCao86
Copy link
Author

Sorry guys, I forgot to put the error message which popup when I try to "run" debug:
image

@codebrainz
Copy link
Member

@JustinCao86 just to confirm, do you have GDB installed? If so, maybe try putting gdb in that "Debugger" text box?

@JustinCao86
Copy link
Author

@JustinCao86 just to confirm, do you have GDB installed? If so, maybe try putting gdb in that "Debugger" text box?

of course:
image
and that text box is a none editable box -_-

@elextr
Copy link
Member

elextr commented Oct 23, 2020

Just because it is in your path in a terminal doesn't mean its in the path inherited by Geany. If started from menus it may not read the same shell startup files.

@JustinCao86
Copy link
Author

Just because it is in your path in a terminal doesn't mean its in the path inherited by Geany. If started from menus it may not read the same shell startup files.

that's right, and I also tried this, I made a link to ensure gdb could be run from /usr/local/bin, and maybe, as what you said, there are some tricks about this "inherited" path used by Geany?

@FunnyGiraffe
Copy link

do you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants