diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-21 20:34:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 20:34:25 +0200 |
commit | 491feb859f30f56bc25d6afc730a1c709a0bb807 (patch) | |
tree | a5a51943d1654515d88412dafe0c459fcbd6c483 /cli/state.rs | |
parent | 8d8a2f573f32e0b2680eb114739902c5953f7b99 (diff) |
fix: --inspect flag working like --inspect-brk (#5697)
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/state.rs b/cli/state.rs index 4306cf102..46fbdfd0b 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -552,7 +552,9 @@ impl State { #[inline] pub fn should_inspector_break_on_first_statement(&self) -> bool { let state = self.borrow(); - state.inspector.is_some() && state.is_main + state.inspector.is_some() + && state.is_main + && state.global_state.flags.inspect_brk.is_some() } #[cfg(test)] |