Debug options?

Linux specific questions.
Achaean
Posts: 51
Joined: Aug 02, 2017 12:54

Debug options?

Postby Achaean » Jan 22, 2018 18:25

Hi! :-)

What are the debugging options for FB running on Linux?

TRON and TROFF are dropped in FB.
FB debugger doesn't seems to have a Linux port.
Geany, although being a nice IDE, doesn't seems to fit the bill.
I suppose GDB is the only option?

If so, (although GDB seems to run flawlessly with FB executables) what are the available GUIs?
Are you familiar with any of them?
I mean, they are capable for providing a front end for GDB, but FB isn't on the official supported languages.
Also, I was looking for a GUI with Unicode support (eg. DDD (which seems abandoned anyway), doesn't support unicode charsets).

TIA! :-)
A.
Dinosaur
Posts: 1363
Joined: Jul 24, 2005 1:13
Location: Hervey Bay
Contact:

Re: Debug options?

Postby Dinosaur » Jan 23, 2018 15:48

Hi All

I have tested at least 6 of the more popular GUI front ends for gdb and concluded that none of those handle multiple threads very well.
Each time stepping through the main code there would be a hangup, or an error looking for some weird file name.
I use usb I/O on a separate thread, but don't step into that thread.

For a long time I used Nemiver, but if you try to compile it now, some of the libraries it requires are outdated
and it wont compile.
Most of the gui's are Editors primarily, and use gdb as an addon debugger.

I notice that you are testing Poseidon, and that is what I am using for debug.
It would be best to come to grips with gdb commands and use them in the editor of your choice.

Regards

PS: Your display problems with Poseidon are KDE based, Cinnamon has no such problems.
Achaean
Posts: 51
Joined: Aug 02, 2017 12:54

Re: Debug options?

Postby Achaean » Jan 23, 2018 21:33

THANKS Dinosaur!!! :-)

Indeed Nemiver couldn't be compile here.
Make aborts with errors.

I'll continue with plain GDB, keeping an eye on Poseidon's development, which indeed looks very promising!
Bye! :-)
A.
Dinosaur
Posts: 1363
Joined: Jul 24, 2005 1:13
Location: Hervey Bay
Contact:

Re: Debug options?

Postby Dinosaur » Jan 25, 2018 3:22

Hi All

Achaean, I have managed to find and test a gdb GUI debugger called Gede that actually works well with FB.
The only changes I had to make to my code was to convert all comments from a single ' to 2 of them.
Also made sure all my Tabs were converted to spaces.
Gede stuffs up the display of the source code with the single '

Then the final test was to see if I could display the values of udt fields.
For example

Code: Select all

Type EStops
   Status   as Long      ''State of E-Stop
   Select  As Long      ''Which button caused it
End Type
Dim Shared EStop AS EStops

By double clicking the .... Name field and typing in ESTOP$ the variable was listed as a Struct and can be expanded to show
the fields with their value. I have tested this with a udt that has 30 Int fields and some String fields.

The only annoyance is that when the mouse is on the "Step" button, sometimes it moves to the middle of the Source screen
and the expected step doesn't happen when you left click.

Well worth a try.

Regards
EDIT:
One of the nice things is that it has a window showing gdb output and a window showing Program output.
So when you debug a gui program and want to quickly print some values to a Terminal, it shows up there.
Achaean
Posts: 51
Joined: Aug 02, 2017 12:54

Re: Debug options?

Postby Achaean » Jan 26, 2018 1:39

Looks nice!
I installed it and I'll try it.
THANKS!!! :-)
Dinosaur
Posts: 1363
Joined: Jul 24, 2005 1:13
Location: Hervey Bay
Contact:

Re: Debug options?

Postby Dinosaur » Feb 09, 2018 0:21

Hi All

Received email on Gede update.
I think you will be really happy to test out the newest version of Gede.
I have added support for FreeBasic and fixed all the issues you have found!
Unfortunately I do not program in basic so I have a hard time testing it.
Please let me know if you find any bugs!


Link:http://gede.acidron.com/


I will test this weekend as I have a new project to debug.

Regards

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests