Hi. On Wed, Feb 24, 2016 at 03:25:50PM +0800, EenyMeenyMinyMoa wrote: > Thank you, Reco. > After > $ sudo apt-get install geany-plugin-debugger > ,the Debug tab appeared at the below partof Geany.
Just as planned ;) > In the "Build"/"Set Build Commands" menu, I've set > compile: gcc -Wall -g -c "%f" > build: gcc -Wall -g -o "%e" "%f" Looks OK to me, as '-g' is there. > I tried to do debugging the following code for a test. > > #include <stdio.h> > int main() { > double x = 3; > printf("%d ", x); > return 0; > } > > When I press the Run button in Debug tab, > a message box appears saying > "Error loading file". Hm... I'm not familiar with Geany at all. It *may* be a way to tell you that Geany is unable to launch gdb (which should have been installed along the way). It may mean anything else of course. This: > the terminal output at that time : > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_string_free: assertion 'string != NULL' > failed > (geany:6702): GLib-CRITICAL **: g_hash_table_destroy: assertion > 'hash_table != NULL' failed Are usual signs of bad programming, this time at Geany side. These messages tell that they try to free certain variables of type GString, but don't even both try to check beforehand if said variable contain something. What we see here is just a bunch unhandled assertions. By itself it may mean anything. > How can I do debugging in Geany successfully? > > And in the "Breakpoints" tab, an old breakpoint of a past file still remains. > How can I delete this? Beats me, sorry. I'd start the troubleshooting of this by attaching with strace(1) to Geany's process - just to ensure whenever Geany is actually tries to launch gdb. Reco