Re: accelerated stepping

[email protected] (Richard Foley) Fri, 29 Aug 2008 16:53:36 +0200
Newsgroups perl.debugger
Message-ID <[email protected]>
Hi Heiko,

> I could imagine $DB::single can be set to 3 for this 'accelerated'
> stepping.
>=20
It's a good idea.

> May I reserve the capital N for that command?
>
Nearly :-)

I only mean you could use either 'nn' or 'N', equally.  To be honest, the=20
former appeals a little more as an extention to the existing command, while=
=20
the latter seems to be a bit more distinct, although I don't actually have=
=20
another suggestion for the latter at the moment either.  If you implement i=
t=20
though, I suspect you can use any letter you choose, certainly at first...

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

http://www.rfi.net/

On Wednesday 27 August 2008 21:33:25 Heiko Ei=DFfeldt wrote:
> Hi,
>=20
> often during single-stepping I am missing a command like 'n' to step
> over not only subroutine calls, but also complete map and grep-commands.
>=20
> Example:
>=20
> Instead of
>=20
> main::(perldb_demo.pl:4):       my @a =3D (1..10);
>   DB<1> n
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:7):               print "found\n";
>=20
> I would like to use
>=20
> main::(perldb_demo.pl:4):       my @a =3D (1..10);
>   DB<1> N
> main::(perldb_demo.pl:6):       if (0 < scalar grep { $_ =3D=3D 9 } @a) {
>   DB<1>=20
> main::(perldb_demo.pl:7):               print "found\n";
>=20
> How could that be done?
>=20
> I could imagine $DB::single can be set to 3 for this 'accelerated'
> stepping.
>=20
> May I reserve the capital N for that command?
>=20
> Thanks,
> Heiko
> --=20
>=20