[Gambas-user] Benoit ?my question re breakpoints ?reached the list?

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Sep 9 19:21:29 CEST 2015


Why you think it has nothing to do with code? If so, why it appears only in
certain class/form?
Can you isolate the problem in small runnable project? Perhaps by using the
problem class.


Jussi



On Wed, Sep 9, 2015 at 7:58 AM, richard terry <rterry at ...1823...>
wrote:

> The image which was embedded must have been stripped by the list-serv,
> anyway, heres some code but the code is irrelevant, its the behaviour of
> not stopping, nothing to do with the code.
>
> Public Sub Plans_Refresh()
> '-----------------------------------------------------------------
>     'Refreshes the plans collection and puts back into the columnview
>     'The plan collection is copied sequentially so that the zero index
>     'will match the columnview key
> '-----------------------------------------------------------------
>
>     Dim x As Integer
>
>     EditArea_Clear
>     currentconsult.Refresh("mentalhealthplans")
>     mentalhealthplans =
>
> modUtil.Copy_Collection_Keyed_Sequentially(currentconsult!mentalhealthplans)
> '
>     cvwPlans.Clear()           'clear the list
> '------------------------------------------------------------------
>     'Display the plan: Date/diagnosis/Type/Prepared By
> '---------------------------------------------------------------
>     For Each mentalhealthplan In mentalhealthplans
>        Print "above the break"
> (x)   cvwPlans.Add(x, 0) <<<---------- the (x) I've written = the red
> breakpoint dot in gambas
>        Print "below the break"
>        cvwPlans[x][0] = Format(mentalhealthplan!plan_date, "dd/mm/yyyy")
> & "  "
>        cvwPlans[x][1] = mentalhealthplan!diagnosis & "  "
>        cvwPlans[x][2] = mentalhealthplan!type & "  "
>        cvwPlans[x][3] = "Prepared by: " & mentalhealthplan!title & " " &
> mentalhealthplan!wholename
>        Inc x
>     Next
>
> End
>
> The terminal output
>      above the break
>      below the break
>
>
> But the program doesn't stop at the red breakpoint (here the (x).
>
>
> On 09/09/15 10:52, Jussi Lahtinen wrote:
> > Where..?
> >
> >
> > Jussi
> >
> > On Wed, Sep 9, 2015 at 3:37 AM, richard terry <rterry at ...1823...>
> > wrote:
> >
> >> See code/piccie below.
> >>
> >> On 09/09/15 10:22, Benoît Minisini wrote:
> >>> Le 09/09/2015 02:02, richard terry a écrit :
> >>>> On 09/09/15 09:07, Jussi Lahtinen wrote:
> >>>>> Are you using JIT..? It disables breakpoints.
> >>>>>
> >>>>>
> >>>>> Jussi
> >>>>>
> >>>>> On Wed, Sep 9, 2015 at 1:49 AM, richard terry <
> rterry at ...1823...
> >>>>> wrote:
> >>>>>
> >>>>>> HI Benoit,
> >>>>>>
> >>>>>> I didn't see my question about breakpoints get back into my maibox.
> >>>>>> .
> >>>>>> I had to debug a form/class last night due to some long standing
> bugs
> >>>>>> and breakpoints won't stop on that form. Gambas 3.7.1. Any other
> form,
> >>>>>> putting in a breakpoint does work. I tried the cleanup project
> option.
> >>>>>>
> >>>>>> Any ideas. Doing it was a pain because I had to put lots of print
> >>>>>> statements in to see what was happening - took hours.
> >>>>>>
> >>>>>> I'll try posting this again to the list.g
> >>>>>>
> >>>>>> Richard
> >>>>>> g
> >>>>>>
> >>>>>>
> >>>> Not using JIT.
> >>>>
> >>>> What happens is simple the code is nothing special. In any other form
> in
> >>>> the project if I point a breakpoint on a line the program execution
> will
> >>>> stop and I can then inspect the contents of a collection or variables
> >> etc.
> >>>> In this form, when the code executes, despite a red dot being visible
> on
> >>>> the side next to the line, the execution doesn't stop. I know it is
> >>>> running past because if I put a print statement on the line above and
> >>>> below it prints a message out in the terminal.
> >>>>
> >>>> ?how does the breakpoint thingy work? could something have gone wrong
> >>>> with just one form?
> >>>>
> >>>>
> >>>> Regards
> >>>>
> >>>> richard
> >>>>
> >>> Again: post some details, some source code, some screenshots of what
> >>> exactly happens. Otherwise beside just talking, nothing can be done.
> >>>
> >>> Regards,
> >>>
> >>
> >> Ok, here's a sample. I might want it to stop on the line with the
> >> breakpoint, to prove it got there I've added a print statement which
> >> shows up in the terminal, however the program doesn't stop and drop back
> >> into the IDE to allow inspection.
> >>
> >>
> ------------------------------------------------------------------------------
> >> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> >> Get real-time metrics from all of your servers, apps and tools
> >> in one place.
> >> SourceForge users - Click here to start your Free Trial of Datadog now!
> >> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> ------------------------------------------------------------------------------
> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> > Get real-time metrics from all of your servers, apps and tools
> > in one place.
> > SourceForge users - Click here to start your Free Trial of Datadog now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list