Re: accelerated stepping

[email protected] (Richard Foley) Mon, 1 Sep 2008 15:43:14 +0200
Newsgroups perl.debugger
Message-ID <[email protected]>
On Saturday 30 August 2008 22:21:34 Heiko Ei=DFfeldt wrote:
>
> > 1. n <- next step over everything (including grep/map/sort).
> >=20
> > 2. s <- step into everything (including grep/map/sort).
> >=20
<snip>
>
> Ok, here is what I did, patch is against Perl 5.10.0.=20
> Please review, thanks. My simple tests worked so far.
>=20
=46rom an initial look at it, it looks good to me, (and works nicely ;), to=
o. =20
Just one thing, you might need to change the regex:

	if (   $dbline[$line] =3D~ m{\bgrep\b}xms
	    || $dbline[$line] =3D~ m{\bmap\b}xms
	    || $dbline[$line] =3D~ m{\bsort\b}xms
	) {

to handle join and reverse as well:

	if ( $dbline[$line] =3D~ m{
		\b(grep|join|map|reverse|sort)\b
	}xms ) {

Maybe try a few single- and multi-line variations and, if it still looks go=
od,=20
submit a proposed patch to p5p?

=2D-=20
Richard Foley
Ciao - shorter than aufwiedersehen

http://www.rfi.net/