[Geany-Users] Fwd: Debugging with gdb

EenyMeenyMinyMoa eenymeenyminymoa at xxxxx
Mon Feb 29 22:06:58 UTC 2016


Hi, Alexander.
Have you seen this thread?
I'm looking forward to your reply to Geany Users mailing list.

EenyMeenyMinyMoalist


---------- Forwarded message ----------
From: Lex Trotman <elextr at gmail.com>
Date: Mon, 29 Feb 2016 10:42:34 +1000
Subject: Re: [Geany-Users] Debugging with gdb
To: Geany general discussion list <users at lists.geany.org>

Looks like the debugger plugin maintainer hasn't noticed, you should
forward directly to him.

Cheers
Lex

On 24 February 2016 at 22:18, EenyMeenyMinyMoa
<eenymeenyminymoa at gmail.com> wrote:
> Hi,
> I want to do debugging by geany&gdb.
> I use debian jessie.
>
> At first, I post this question on debian-users mailing list.
> https://lists.debian.org/debian-user/2016/02/msg00696.html
> https://lists.debian.org/debian-user/2016/02/msg00697.html
> https://lists.debian.org/debian-user/2016/02/msg00810.html
> https://lists.debian.org/debian-user/2016/02/msg00815.html
> But I think this mailing list is more appropiate, so I post this.
>
> In debian-users mailing list,
> I receive an advice
> that I should install geany-plugin-debugger, not geany-plugin-gdb,
> for debian jessie.
>
> After
> $ sudo apt-get install geany-plugin-debugger
> ,the Debug tab appeared at the below part of Geany.
>
> In the "Build"/"Set Build Commands" menu, I've set
> compile: gcc -Wall -g -c "%f"
> build: gcc -Wall -g -o "%e" "%f"
>
> 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".
>
> 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
>
> After
> $ starce geany
> ,I set few breakpoints and push the compile button,then push the run button.
> I copy the terminal output to starce_result.txt.
> $ cat starce_result.txt | grep gdb
> read(20, "~\"GNU gdb (Debian 7.7.1+dfsg-5) "..., 1024) = 96
> read(20, "(gdb) \n", 1024) = 7
> write(19, "-gdb-exit\n", 10) = 10
>
> 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?
>
> EenyMeenyMinyMoa
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list