Debugger Does Not Show Last Record in Foundset

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

Debugger Does Not Show Last Record in Foundset

Postby kwpsd » Tue May 24, 2011 10:19 pm

Version: 5.2.8 - build 1016

Whenever I examine a foundset in the debugger (as a 'watch' expression), the number of records shown is one less than the maximum size of the foundset, and it appears that it is always the last record of the foundset that is missing. So, if you have a one record foundset, you cannot view the record contents in the debugger (i.e. 'record_1 = Record' is not displayed in the foundset tree structure). Has anyone else noticed this behavior?

Servoy version 6, beta 2, works the same way as well.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Debugger Does Not Show Last Record in Foundset

Postby jcompagner » Wed May 25, 2011 4:18 pm

that is a safeguard that works a bit to well.
We do give you 1 less then the total size because that last record could trigger the load of the next batch of 200..
And a debugger shouldn't trigger that.

I improved it a bit for 6 so that it only does -1 if there are more rows to get, so if there is only 1 (or 97) row(s) then it will display all of them now.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Debugger Does Not Show Last Record in Foundset

Postby kwpsd » Wed May 25, 2011 6:53 pm

that is a safeguard that works a bit to well.


Too funny!

The best laid plans of mice and men often go awry.

-- Sidney Shelton, author


Thanks, Johan, for the explanation and for addressing the issue in version 6...I eagerly await its release.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 8 guests