You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Contributing.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,9 @@ would need a configuration file named `test-indent.toml` in that directory. As a
64
64
example, the `issue-1111.rs` test file is configured by the file
65
65
`./tests/config/issue-1111.toml`.
66
66
67
+
## Debugging
68
+
69
+
Some `rewrite_*` methods use the `debug!` macro for printing useful information. These messages can be printed by using the environment variable `RUST_LOG=rustfmt=DEBUG`. These traces can be helpful in understanding which part of the code was used and get a better grasp on the execution flow.
67
70
68
71
## Hack!
69
72
@@ -153,6 +156,8 @@ which is how much we are currently indented from the lhs of the page. We also
153
156
take a context which contains information used for parsing, the current block
0 commit comments