[Gambas-user] Debugging Gambas (again)

Cedron Dawg cedron at exede.net
Fri Apr 26 21:40:11 CEST 2019

I'm not understanding the need for deep-diving debugging here.

You have some code that is blowing up.  It doesn't blow up immediately, so you know it isn't an obvious inherent Gambas problem.  Something must be different in the call that blows up vs the calls that don't.  That something is in your code, and you need to find it.  It seems to me, tracing the blowup into the internals of Gambas to see what actually blows, so you can deduce what you did in your code to make that happen is a cumbersome way to go about it.

Traditional source code level debugging, e.g. print statements, breakpoints, and watch variables, should help you find your problem.  The most I can see arising from doing the debugging down to the Gambas code itself, is to formulate a recommendation for one more safety check in the code.  Depending upon what the problem is, this may or may not be something that needs fixing.  But, you still know you have a problem in your code.

Perhaps you should post a part of your code around the problem area and somebody might spot what is going on.

On the other hand, if you are interested in these advanced debugging techniques in their own right, forget everything I said.


For upgrading your Gambas, doesn't the PPA (team-gambas/gambas3) work for you?  You shouldn't need to compile it yourself.

----- Original Message -----
From: "KKing" <kicking177 at gmail.com>


So I'm back to trying to establish why a large application ported from 
powerbasic is failing with a segmentation fault.

Please note I am not looking for anyone to tell me the problem with my 
code, I am looking for guidance on how to go about debugging a Gambas 


My next steps are likely to be to grab the latest version of Gambas 
source and compile that on a Debian 9 64bit unit, and assuming it still 
fails, repeat the above.

Does that sound reasonable, anything else I should do differently?


----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----

More information about the User mailing list