Sha256: 02066f5c366468f7a2c4dcab547c9aa248301a5e9a2a5fb4acfe476d4dee6480

Contents?: true

Size: 692 Bytes

Versions: 40

Compression:

Stored size: 692 Bytes

Contents

# Quick Notes to Help with Debugging

## Comparing against ruby / ripper:

```
% rake cmp3 F=file.rb
```

This compiles the parser & lexer and then parses file.rb using both
ruby, ripper, and ruby_parser in debug modes. The output is munged to
be as uniform as possible and diffable. I'm using emacs'
`ediff-files3` to compare these files (via `rake cmp3`) all at once,
but regular `diff -u tmp/{ruby,rp}` will suffice for most tasks.

From there? Good luck. I'm currently trying to backtrack from rule
reductions to state change differences. I'd like to figure out a way
to go from this sort of diff to a reasonable test that checks state
changes but I don't have that set up at this point.

Version data entries

40 entries across 26 versions & 3 rubygems

Version Path
brakeman-4.9.0 bundle/ruby/2.7.0/gems/ruby_parser-3.14.2/debugging.md
brakeman-4.8.2 bundle/ruby/2.7.0/gems/ruby_parser-3.14.2/debugging.md
brakeman-4.8.1 bundle/ruby/2.4.0/gems/ruby_parser-3.14.2/debugging.md
brakeman-4.8.0 bundle/ruby/2.7.0/gems/ruby_parser-3.14.2/debugging.md
ruby_parser-3.14.2 debugging.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/debugging.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.7.2/bundle/ruby/2.6.0/gems/ruby_parser-3.14.1/debugging.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.7.1/bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.7.0/bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.5.1/bundle/ruby/2.5.0/gems/ruby_parser-3.13.1/debugging.md
brakeman-4.7.2 bundle/ruby/2.6.0/gems/ruby_parser-3.14.1/debugging.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/brakeman-4.7.1/bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/brakeman-4.5.1/bundle/ruby/2.5.0/gems/ruby_parser-3.13.1/debugging.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/debugging.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/brakeman-4.7.0/bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
ruby_parser-3.14.1 debugging.md
brakeman-4.7.1 bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/debugging.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/brakeman-4.7.0/bundle/ruby/2.6.0/gems/ruby_parser-3.14.0/debugging.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/brakeman-4.5.1/bundle/ruby/2.5.0/gems/ruby_parser-3.13.1/debugging.md