[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A window opens before the unhandled error


Perfect, it worked, see attached image

Il 25/10/24 16:35, Bruce Steers ha scritto:
Quicky test it by using a TabPanel and making it error.

eg.

TabPanel1.Count=1
TabPanel1[3].Text = "test"

the debugger will halt in gb.form/TabPanel._get

clicking where it says "TabPanel._get.656" in the lower/left StackTrace
panel will open gb.form/TabPanel.class.

(well on your system it will, i've somehow broken mine and it just pops
up a message box with the error text :( )

BruceS

On Fri, 25 Oct 2024 at 15:02, Gianluigi <gradobag@xxxxxxxxxxx
<mailto:gradobag@xxxxxxxxxxx>> wrote:

    Il 24/10/24 23:38, Benoît Minisini ha scritto:
     > Le 24/10/2024 à 23:06, Bruce Steers a écrit :
     >> Well I guess Benoit will have to explain it in a way you will
     >> understand then.
     >>
     >> BruceS
     >>
     >
     > I'm trying...
     >
     > The debugger can stops not only in your project code, but also in any
     > component. Usually when there is an error.
     >
     > In that case, the IDE asks the user (through the dialog box we are
     > talking about) if he can locate on his system the source code of the
     > component, i.e. the directory of the project of the component.
     >
     > Of course, it is available only if you have compiled Gambas from
     > sources, or if you have somethere a copy of the Gambas source code
     > corresponding to the version of Gambas you are running.
     >
     > If you don't, then cancel the dialog box, and the IDE will do
    nothing.
     >
     > If you can locate the source code, tell the IDE, and it will display
     > that source code during the debugging session, as if that source code
     > would be part of your project.
     >
     > When the debugger stops, all tabs corresponding to component source
     > codes, i.e. external to the project, are automatically closed.
     >
     > Regards,
     >

    Hi Benoit,

    our friend's problem was just that he had checked the Debug menu box,
    once he removed the check everything started working fine again.
    You can find the discussion at this link:
    https://www.gambas-it.org/smf/index.php?
    topic=10946.msg54536#msg54536 <https://www.gambas-it.org/smf/
    index.php?topic=10946.msg54536#msg54536>

    But now I'm curious to understand how it works, is it possible to get a
    small example project?
    I tried to create it by inducing an error with Error.Raise("TEST") but
    nothing different than usual happens here.

    Regards
    Gianluigi

    P.S. I forgot to tell BruceS that even though I didn't understand, I
    still forwarded his suggestions to our friend, thanks.


Attachment: test.png
Description: PNG image


Follow-Ups:
Re: A window opens before the unhandled errorBruce Steers <bsteers4@xxxxxxxxx>
References:
A window opens before the unhandled errorGianluigi <gradobag@xxxxxxxxxxx>
Re: A window opens before the unhandled errorBruce Steers <bsteers4@xxxxxxxxx>
Re: A window opens before the unhandled errorGianluigi <gradobag@xxxxxxxxxxx>
Re: A window opens before the unhandled errorBruce Steers <bsteers4@xxxxxxxxx>
Re: A window opens before the unhandled errorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: A window opens before the unhandled errorGianluigi <gradobag@xxxxxxxxxxx>
Re: A window opens before the unhandled errorBruce Steers <bsteers4@xxxxxxxxx>