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.
Debug options?
Re: Debug options?
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.
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.
Re: Debug options?
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.
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.
Re: Debug options?
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
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, 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.
Re: Debug options?
Looks nice!
I installed it and I'll try it.
THANKS!!! :-)
I installed it and I'll try it.
THANKS!!! :-)
Re: Debug options?
Hi All
Received email on Gede update.
Link:http://gede.acidron.com/
I will test this weekend as I have a new project to debug.
Regards
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
Who is online
Users browsing this forum: No registered users and 5 guests