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

Add debug documentation #1144

Closed
pyrmont opened this issue Jun 1, 2019 · 4 comments
Closed

Add debug documentation #1144

pyrmont opened this issue Jun 1, 2019 · 4 comments
Labels
docs-request A request for documentation to be developed. stale-issue There has been no activity for a year.

Comments

@pyrmont
Copy link
Contributor

pyrmont commented Jun 1, 2019

@miparnisari wrote in a comment in #1111:

Can we add information on how to debug while developing? What I do is run rackup >> debug.txt and then load localhost:9292/json?debug which prints something like

lexer: json
stack: [:root]
stream: "\"firstName\": \"John\","
  trying #<Rule /\s+/m>
  trying #<Rule /"/>
    got "\""
    yielding Literal.String.Double, "\""
    pushing :string
lexer: json
stack: [:root, :string]
stream: "firstName\": \"John\",\n"
  trying #<Rule /[^\\"]+/>
    got "firstName"
    yielding Literal.String.Double, "firstName"
@pyrmont pyrmont added the docs-request A request for documentation to be developed. label Jun 1, 2019
@stale
Copy link

stale bot commented May 31, 2020

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.
If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

@stale stale bot added the stale-issue There has been no activity for a year. label May 31, 2020
@pyrmont
Copy link
Contributor Author

pyrmont commented Jun 2, 2020

This is still outstanding.

@stale stale bot removed the stale-issue There has been no activity for a year. label Jun 2, 2020
@ComFreek
Copy link
Contributor

ComFreek commented Sep 16, 2020

I just found this issue and found it helpful for debugging. It's not stale!

Any tips on how to best human-parse the output on CLI? The first time I go to localhost:9292/json?debug, it's all just fine parsable, but then I usually go on to fix something in the lexer and refresh the page. Then the CLI is spammed with another round of debug info and I cannot determine what's old and what's new debug info anymore.
Does anyone got some shell tricks (e.g. with less)?

@stale
Copy link

stale bot commented Sep 19, 2021

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.
If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

@stale stale bot added the stale-issue There has been no activity for a year. label Sep 19, 2021
@stale stale bot closed this as completed Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-request A request for documentation to be developed. stale-issue There has been no activity for a year.
Projects
None yet
Development

No branches or pull requests

2 participants