I've been trying to address #1141 and come to a point where the next logical step seems to be to step through Geany's / Scintilla's code in order to understand what is happening. Has someone else gotten some sort of debugger working on this codebase before? I've tried to get GDB working but I can't get it to find the source files.
### What I've tried so far I read [`HACKING`](https://github.com/geany/geany/blob/master/HACKING) and then ran `CFLAGS='-g -O0' ./autogen.sh --disable-html-docs` to get debug symbols, and ran `make`. I then tried running `gdb src/geany`. GDB complained that `src/geany` was not an executable. I examined `src/geany` and found it was in fact a shell script. After a bit of digging I found the `src/.libs/` folder which contained an executable which if I ran it directly opened up a Geany instance. So I tried running `gdb /src/.libs/geany` which seemed to work except that GDB only knows about [main.c](https://github.com/geany/geany/blob/2a2ae728341d12b7cea29b671beb08e441f62d95...) and its header file. I looked up how to tell GDB about where source files are and I found [this page of the manual](https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html). I then ran `dir src` inside GDB and that added the correct folder to the search path, but GDB still couldn't find the source files.
I haven't really used GDB before, so a) I might be missing something regarding operating GDB itself, and b) if someone has a way to debug Geany using another method, that's fine with me!