Add setting TREE_SITTER_DEBUG in the test subcommand
Were asked in #1218
This commit is contained in:
parent
9ac55f79d1
commit
c7d431b53e
1 changed files with 5 additions and 0 deletions
|
|
@ -329,6 +329,11 @@ fn run() -> Result<()> {
|
|||
let update = matches.is_present("update");
|
||||
let filter = matches.value_of("filter");
|
||||
|
||||
if debug {
|
||||
// For augmenting debug logging in external scanners
|
||||
env::set_var("TREE_SITTER_DEBUG", "1");
|
||||
}
|
||||
|
||||
loader.use_debug_build(debug_build);
|
||||
|
||||
let languages = loader.languages_at_path(¤t_dir)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue