Re: [Gambas-user] Error messages from library?
> > If your library is compiled with debugging information, you get the full > stack backtrace in the IDE when the error occurs. It's just that the IDE > can just deal with one project only, the main one. > > When the IDE run a project that uses a library, it cannot know at the > moment where are the source code of the library. > > If I find a solution, I will tell! > OK, thanks! Jussi -- 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
Re: [Gambas-user] Error messages from library?
Le 27/04/2016 23:04, Jussi Lahtinen a écrit : > I found the culprit in this case. Thanks to all for the suggestions! > But I really hope there would be way to debug these bit easier, than > placing message boxes to the library code... > > Benoit, > would it be possible to run library parallel from other instance of the > IDE? Or at least get the debug information from the lib, like in crash > with normal executables? > > > Jussi > If your library is compiled with debugging information, you get the full stack backtrace in the IDE when the error occurs. It's just that the IDE can just deal with one project only, the main one. When the IDE run a project that uses a library, it cannot know at the moment where are the source code of the library. If I find a solution, I will tell! -- Benoît Minisini -- 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
Re: [Gambas-user] Error messages from library?
I found the culprit in this case. Thanks to all for the suggestions! But I really hope there would be way to debug these bit easier, than placing message boxes to the library code... Benoit, would it be possible to run library parallel from other instance of the IDE? Or at least get the debug information from the lib, like in crash with normal executables? Jussi On Wed, Apr 27, 2016 at 10:15 AM, adamn...@gmail.com wrote: > On Wed, 27 Apr 2016 01:07:20 +0300 > Jussi Lahtinen 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 > > > -- > 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 > -- 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
Re: [Gambas-user] Error messages from library?
On Wed, 27 Apr 2016 01:07:20 +0300 Jussi Lahtinen 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 -- 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
Re: [Gambas-user] Error messages from library?
Am 27.04.2016 um 00:40 schrieb Jussi Lahtinen: > Not that simple. The library has embedded data etc, and to avoid conflicts > I would need to modify the code. Hm... can you pack that data in a separated lib? I did so with some of my libs which grew too much. One big lib became 4 smaller ones. Thats also better to prevent spaghetti code (but not dependency hell ;-)). > Also generally speaking I hope there is easier way to do this. Seems not, because libs are executables. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -- 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
Re: [Gambas-user] Error messages from library?
Not that simple. The library has embedded data etc, and to avoid conflicts I would need to modify the code. More over I suspect something strange happening in the export. Also generally speaking I hope there is easier way to do this. Jussi On Wed, Apr 27, 2016 at 1:22 AM, Christof Thalhofer wrote: > Am 27.04.2016 um 00:07 schrieb Jussi Lahtinen: > > > 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? > > If you have to debug a lib, simply copy the code to the project using > the lib (and remove the lib itself from your project). > > In the project you can make a subdir AAALib (or something equivalent – I > do this to remember, that the lib's code is inside my project) and copy > the sourcecode there. > > Then you can test your project, debug and change the code. When done, > move the sourcefiles back to your lib, make an executable of them and > include it again in your project. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > -- > 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 > -- 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
Re: [Gambas-user] Error messages from library?
Am 27.04.2016 um 00:07 schrieb Jussi Lahtinen: > 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? If you have to debug a lib, simply copy the code to the project using the lib (and remove the lib itself from your project). In the project you can make a subdir AAALib (or something equivalent – I do this to remember, that the lib's code is inside my project) and copy the sourcecode there. Then you can test your project, debug and change the code. When done, move the sourcefiles back to your lib, make an executable of them and include it again in your project. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -- 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