[Gambas-bugtracker] Bug #1730: gb.pcre Component RegExp Causes IDE Debugger Bug

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Feb 10 23:27:45 CET 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1730&from=L21haW4-

REALITYRIPPLE reported a new bug.

Summary
-------

gb.pcre Component RegExp Causes IDE Debugger Bug

Type             : Bug
Priority         : Low
Gambas version   : Master
Product          : Development Environment


Description
-----------

Because RegExp switched to being a sort of array, and since the Count value ignores the [0] match and just returns the number of Captures, the IDE will show the values of a RegExp array like a normal array during debugging, specifically listing items 0 through Count - 1, thus omitting the final Capture from the debugger's variable display.

My best guess at a non-language-impacting change would be to determine the upper bound instead of relying on Count.


System information
------------------

Definitely a problem in daily build, probably been in there since SubMatches was phased out.




More information about the Bugtracker mailing list