diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-04-03 19:40:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 13:40:11 -0400 |
commit | c0cb198114ccc2dc4fa2764d307ad985c456882a (patch) | |
tree | d805b82639334dc2126dccd03dcbcfb62ef12f14 /cli/lib.rs | |
parent | 3f489ae1aeff6f27b2214dc8201ed068abd5f973 (diff) |
Make inspector more robust, add --inspect-brk support (#4552)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index 832ff1ccb..16c7942c6 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -70,6 +70,7 @@ use crate::file_fetcher::SourceFile; use crate::global_state::GlobalState; use crate::msg::MediaType; use crate::ops::io::get_stdio; +use crate::state::DebugType; use crate::state::State; use crate::worker::MainWorker; use deno_core::v8_set_flags; @@ -132,7 +133,7 @@ fn create_main_worker( global_state: GlobalState, main_module: ModuleSpecifier, ) -> Result<MainWorker, ErrBox> { - let state = State::new(global_state, None, main_module)?; + let state = State::new(global_state, None, main_module, DebugType::Main)?; { let mut s = state.borrow_mut(); |