[Geany-Users] Debugging with gdb

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Geany-Users] Debugging with gdb

EenyMeenyMinyMoa
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
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

Lex Trotman
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
<[hidden email]> 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
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Geany-Users] Fwd: Debugging with gdb

EenyMeenyMinyMoa
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 <[hidden email]>
Date: Mon, 29 Feb 2016 10:42:34 +1000
Subject: Re: [Geany-Users] Debugging with gdb
To: Geany general discussion list <[hidden email]>

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
<[hidden email]> 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
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

Colomban Wendling
In reply to this post by EenyMeenyMinyMoa
Hi,

Le 24/02/2016 13:18, EenyMeenyMinyMoa a écrit :

> 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.

Yes, here's probably a better location.

> In debian-users mailing list,
> I receive an advice
> that I should install geany-plugin-debugger, not geany-plugin-gdb,
> for debian jessie.

There are 3 debugger plugins:

geanygdb, which is quite old, Debugger and Scope.  I would recommend
either of the last 2, although I never tried Scope.

So that was good advice.

> After
> $ sudo apt-get install geany-plugin-debugger
> ,the Debug tab appeared at the below part of Geany.

That's good, at least the plugin is properly loaded now :)

> 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;
> }

Good idea to debug this, it has a pretty glaring bug: %d format in
printf() expects an integer, not a double -- not to mention it's likely
missing a \n, too :)
Though, I'm not sure if a debugger can really help here…

>
> When I press the Run button in Debug tab,
> a message box appears saying
> "Error loading file".

Did you properly select the program to run in the Target entry of
Debugger's Target tab?  That's where you tell the plugin what program
you want to debug.  You need to select the binary GCC generated (and not
an object file, e.g. not something generated with GCC's -c option).

This said, the Debugger plugin received several fixes recently, which
will only be part of the next release.  In the previous version I think
it was not possible to work on files if their path contained non-ASCII
characters, i.e. accentuated letters from non-English languages.

> […]
> And in the "Breakpoints" tab, an old breakpoint of a past file still remains.
> How can I delete this?

You either click on the diamond shape in the sidebar when having this
file open, or select the breakpoint in the list and hit Delete.

Regards,
Colomban
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

EenyMeenyMinyMoa
Thanks, Colomban.

>> When I press the Run button in Debug tab,
>> a message box appears saying
>> "Error loading file".
>
> Did you properly select the program to run in the Target entry of
> Debugger's Target tab?  That's where you tell the plugin what program
> you want to debug.  You need to select the binary GCC generated (and not
> an object file, e.g. not something generated with GCC's -c option).

I selected
foo.c (source code)
in the Target entry of Debugger's Target tab.
I've changed this into
foo.o (the binary GCC generated)
,then I can do debugging successfully.

>> And in the "Breakpoints" tab, an old breakpoint of a past file still remains.
>> How can I delete this?
>
> You either click on the diamond shape in the sidebar when having this
> file open, or select the breakpoint in the list and hit Delete.

Where is "Delete"? I can't find it.
And by hitting "Delete",can I erase the names of past files,too?
It may be a trivial thing though.

$ geany --version
geany 1.24.1 (built on 2014-04-19 with GTK 2.24.23, GLib 2.40.0)
$ dpkg -l geany-plugin-debugger
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  geany-plugin-d 1.24+dfsg-5  amd64        debugger plugin for Geany

EenyMeenyMinyMoa


2016-03-02 5:28 GMT+08:00, Colomban Wendling <[hidden email]>:

> Hi,
>
> Le 24/02/2016 13:18, EenyMeenyMinyMoa a écrit :
>> 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.
>
> Yes, here's probably a better location.
>
>> In debian-users mailing list,
>> I receive an advice
>> that I should install geany-plugin-debugger, not geany-plugin-gdb,
>> for debian jessie.
>
> There are 3 debugger plugins:
>
> geanygdb, which is quite old, Debugger and Scope.  I would recommend
> either of the last 2, although I never tried Scope.
>
> So that was good advice.
>
>> After
>> $ sudo apt-get install geany-plugin-debugger
>> ,the Debug tab appeared at the below part of Geany.
>
> That's good, at least the plugin is properly loaded now :)
>
>> 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;
>> }
>
> Good idea to debug this, it has a pretty glaring bug: %d format in
> printf() expects an integer, not a double -- not to mention it's likely
> missing a \n, too :)
> Though, I'm not sure if a debugger can really help here…
>
>>
>> When I press the Run button in Debug tab,
>> a message box appears saying
>> "Error loading file".
>
> Did you properly select the program to run in the Target entry of
> Debugger's Target tab?  That's where you tell the plugin what program
> you want to debug.  You need to select the binary GCC generated (and not
> an object file, e.g. not something generated with GCC's -c option).
>
> This said, the Debugger plugin received several fixes recently, which
> will only be part of the next release.  In the previous version I think
> it was not possible to work on files if their path contained non-ASCII
> characters, i.e. accentuated letters from non-English languages.
>
>> […]
>> And in the "Breakpoints" tab, an old breakpoint of a past file still
>> remains.
>> How can I delete this?
>
> You either click on the diamond shape in the sidebar when having this
> file open, or select the breakpoint in the list and hit Delete.
>
> Regards,
> Colomban
> _______________________________________________
> Users mailing list
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

Lex Trotman
On 2 March 2016 at 22:08, EenyMeenyMinyMoa <[hidden email]> wrote:

> Thanks, Colomban.
>
>>> When I press the Run button in Debug tab,
>>> a message box appears saying
>>> "Error loading file".
>>
>> Did you properly select the program to run in the Target entry of
>> Debugger's Target tab?  That's where you tell the plugin what program
>> you want to debug.  You need to select the binary GCC generated (and not
>> an object file, e.g. not something generated with GCC's -c option).
>
> I selected
> foo.c (source code)
> in the Target entry of Debugger's Target tab.
> I've changed this into
> foo.o (the binary GCC generated)
> ,then I can do debugging successfully.
>
>>> And in the "Breakpoints" tab, an old breakpoint of a past file still remains.
>>> How can I delete this?
>>
>> You either click on the diamond shape in the sidebar when having this
>> file open, or select the breakpoint in the list and hit Delete.
>
> Where is "Delete"? I can't find it.

The "Delete" key?

> And by hitting "Delete",can I erase the names of past files,too?

You have to select the breakpoint to delete it, so you have to have
the file open to select it.

> It may be a trivial thing though.
>
> $ geany --version
> geany 1.24.1 (built on 2014-04-19 with GTK 2.24.23, GLib 2.40.0)
> $ dpkg -l geany-plugin-debugger
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name           Version      Architecture Description
> +++-==============-============-============-=================================
> ii  geany-plugin-d 1.24+dfsg-5  amd64        debugger plugin for Geany
>
> EenyMeenyMinyMoa
>
>
> 2016-03-02 5:28 GMT+08:00, Colomban Wendling <[hidden email]>:
>> Hi,
>>
>> Le 24/02/2016 13:18, EenyMeenyMinyMoa a écrit :
>>> 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.
>>
>> Yes, here's probably a better location.
>>
>>> In debian-users mailing list,
>>> I receive an advice
>>> that I should install geany-plugin-debugger, not geany-plugin-gdb,
>>> for debian jessie.
>>
>> There are 3 debugger plugins:
>>
>> geanygdb, which is quite old, Debugger and Scope.  I would recommend
>> either of the last 2, although I never tried Scope.
>>
>> So that was good advice.
>>
>>> After
>>> $ sudo apt-get install geany-plugin-debugger
>>> ,the Debug tab appeared at the below part of Geany.
>>
>> That's good, at least the plugin is properly loaded now :)
>>
>>> 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;
>>> }
>>
>> Good idea to debug this, it has a pretty glaring bug: %d format in
>> printf() expects an integer, not a double -- not to mention it's likely
>> missing a \n, too :)
>> Though, I'm not sure if a debugger can really help here…
>>
>>>
>>> When I press the Run button in Debug tab,
>>> a message box appears saying
>>> "Error loading file".
>>
>> Did you properly select the program to run in the Target entry of
>> Debugger's Target tab?  That's where you tell the plugin what program
>> you want to debug.  You need to select the binary GCC generated (and not
>> an object file, e.g. not something generated with GCC's -c option).
>>
>> This said, the Debugger plugin received several fixes recently, which
>> will only be part of the next release.  In the previous version I think
>> it was not possible to work on files if their path contained non-ASCII
>> characters, i.e. accentuated letters from non-English languages.
>>
>>> […]
>>> And in the "Breakpoints" tab, an old breakpoint of a past file still
>>> remains.
>>> How can I delete this?
>>
>> You either click on the diamond shape in the sidebar when having this
>> file open, or select the breakpoint in the list and hit Delete.
>>
>> Regards,
>> Colomban
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

Colomban Wendling
In reply to this post by EenyMeenyMinyMoa
Le 02/03/2016 13:08, EenyMeenyMinyMoa a écrit :
> […]
>
> I selected
> foo.c (source code)
> in the Target entry of Debugger's Target tab.
> I've changed this into
> foo.o (the binary GCC generated)
> ,then I can do debugging successfully.

Normally you should be selecting the executable file without any suffix.
But well, so long as it works, what do I know :)

>>> And in the "Breakpoints" tab, an old breakpoint of a past file still remains.
>>> How can I delete this?
>>
>> You either click on the diamond shape in the sidebar when having this
>> file open, or select the breakpoint in the list and hit Delete.
>
> Where is "Delete"? I can't find it.

Sorry, I meant the Delete key on your keyboard.

> And by hitting "Delete",can I erase the names of past files,too?
> It may be a trivial thing though.

Yes, you can remove any breakpoint listed, them being in an open file or
not.

Regards,
Colomban
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Debugging with gdb

EenyMeenyMinyMoa
>>>> And in the "Breakpoints" tab, an old breakpoint of a past file still
>>>> remains.
>>>> How can I delete this?
>>>
>>> You either click on the diamond shape in the sidebar when having this
>>> file open, or select the breakpoint in the list and hit Delete.
>>
>> Where is "Delete"? I can't find it.
>
> Sorry, I meant the Delete key on your keyboard.

I misunderstood. So sorry.
By hitting Delete key on my keyboard I was able to remove breakpoints
and the names of past files.
Thanks again,Colomban.

EenyMeenyMinyMoa


2016-03-02 22:07 GMT+08:00, Colomban Wendling <[hidden email]>:

> Le 02/03/2016 13:08, EenyMeenyMinyMoa a écrit :
>> […]
>>
>> I selected
>> foo.c (source code)
>> in the Target entry of Debugger's Target tab.
>> I've changed this into
>> foo.o (the binary GCC generated)
>> ,then I can do debugging successfully.
>
> Normally you should be selecting the executable file without any suffix.
> But well, so long as it works, what do I know :)
>
>>>> And in the "Breakpoints" tab, an old breakpoint of a past file still
>>>> remains.
>>>> How can I delete this?
>>>
>>> You either click on the diamond shape in the sidebar when having this
>>> file open, or select the breakpoint in the list and hit Delete.
>>
>> Where is "Delete"? I can't find it.
>
> Sorry, I meant the Delete key on your keyboard.
>
>> And by hitting "Delete",can I erase the names of past files,too?
>> It may be a trivial thing though.
>
> Yes, you can remove any breakpoint listed, them being in an open file or
> not.
>
> Regards,
> Colomban
> _______________________________________________
> Users mailing list
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Loading...