Browse Source

Update CONTRIBUTING.md

pull/303/head
Jason Williams 5 years ago committed by GitHub
parent
commit
8002a959a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      CONTRIBUTING.md

11
CONTRIBUTING.md

@ -27,15 +27,8 @@ Then simply clone this project and `cargo build`
### Debugging ### Debugging
You can see the output of tokens by adding a `dbg!(&tokens);` here: Knowing how to debug the interpreter should help you resolve problems quite quickly.\
https://github.com/jasonwilliams/boa/blob/master/src/lib/lib.rs#L31 See [Debugging](docs/debugging.md)
This is useful to know if the tokens are in the right order, or any unexpected tokens are appearing.
The parser's expression tree can be viewed by adding `dbg!(&expr)` here:
https://github.com/jasonwilliams/boa/blob/master/src/lib/lib.rs#L34
To get a full backtrace you will need to set the environment variable `RUST_BACKTRACE=1`
### Web Assembly ### Web Assembly

Loading…
Cancel
Save