Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in rules don't emit <?DEBUG> output in Rakudo (nqp-rx) #2120

Closed
p6rt opened this issue Aug 31, 2010 · 3 comments
Closed

Built-in rules don't emit <?DEBUG> output in Rakudo (nqp-rx) #2120

p6rt opened this issue Aug 31, 2010 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2010

Migrated from rt.perl.org#77576 (status was 'resolved')

Searchable as RT77576$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @masak

<masak> moritz_​: nqp-rx has a debug/trace facility. I haven't tried it
much, but it seems to overlap slightly with your suggestion for
manually adding debug statements.
<moritz_> masak​: I thought <?DEBUG(1)> worked. Right now I don't see any effect.
<moritz_> worked in rakudo, that is
<masak> I thought so too. sadly, I don't know any more about it.
<masak> pmichaud++ likely will, though.
<moritz_> <?DEBUG(1)> seems to work in grammars
<masak> huh. why would there be a difference inside or outside of a grammar?
<moritz_> rakudo​: my token foo { <alpha> }; 'abcd' ~~ /<?DEBUG(1)> <&foo>+d/
<p6eval> rakudo f8e959​: OUTPUT«
1283275173.029351 0/0 START foo
1283275173.029638 0/0 PASS foo at pos=1
1283275173.029860 1/0 START foo
1283275173.030061 1/0 PASS foo at pos=2
1283275173.030274 2/0 START foo
1283275173.030426 2/0 PASS foo at pos=3
1283275173.030636 3/0 START foo
1283275173
<moritz_> seems to work outside too, but not for <alpha>
<masak> because <alpha> (along with the other predefined rules) is special-cased
<masak> probably should emit debug output, though.
* masak submits nqp-rxbug

@p6rt
Copy link
Author

p6rt commented May 29, 2012

From @moritz

<?DEBUG> is now gone, replaced with the --rxtrace command line option
and jnthn's awesome Regex​::Tracer. Closing.

@p6rt
Copy link
Author

p6rt commented May 29, 2012

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed May 29, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant