From 8002a959a0537692e804d948c9933f04c0d8bf4e Mon Sep 17 00:00:00 2001 From: Jason Williams <936006+jasonwilliams@users.noreply.github.com> Date: Wed, 8 Apr 2020 18:38:03 +0100 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 840f10d49a..c0332cff4f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,15 +27,8 @@ Then simply clone this project and `cargo build` ### Debugging -You can see the output of tokens by adding a `dbg!(&tokens);` here: -https://github.com/jasonwilliams/boa/blob/master/src/lib/lib.rs#L31 - -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` +Knowing how to debug the interpreter should help you resolve problems quite quickly.\ +See [Debugging](docs/debugging.md) ### Web Assembly