[Gambas-user] Error messages from library?

adamnt42 at ...626... adamnt42 at ...626...
Wed Apr 27 09:15:41 CEST 2016


On Wed, 27 Apr 2016 01:07:20 +0300
Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:

> Hi!
> I have two projects using same library (made with Gambas).
> When same functions are used in project 1, everything is OK, but from
> project 2 I got "Out of bounds". How can I see what happens in the library?
> 
> 
> Jussi

Hiya Jussi,

The way we do this here is that each library has a non-exported "test" module. I take it that you know the exact call structure and data from both project 1 and project 2 when the dreaded OOB occurs.  It's a PITA but we simply add a test to the said module mimicking the exact calls and step through the library in the IDE debugger.

Most times the only result is that we find a new exception condition that we hadn't considered in the library code .... :-( 
but then after adding traps for that ..... it begins to get clearer what the problem is. .... :-(
 
That (those) damn OOB error(s) in libraries are now probably the most time consuming bugs we get and are usually something in the mainline &^#@!(^ data that we hadn't considered "possible (in a sane universe)".

Not a great deal of help but I feel your pain.  Back in Gambas 2 it was possible to debug libraries on the fly by creating links to the source classes in the client project. But that was AFAIK an undiscovered feature that went away at GB3. Such is life.

regards
bruce

-- 
B Bruen <adamnt42 at ...3379... (sort of)>




More information about the User mailing list