On Wed, 27 Apr 2016 01:07:20 +0300 Jussi Lahtinen <jussi.lahti...@gmail.com> 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 <adamn...@gnail.com (sort of)> ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user