parent
11349ebf2e
commit
7589555cec
4 changed files with 5 additions and 7 deletions
|
@ -65,7 +65,7 @@ int NodeMain(int argc, char* argv[]) {
|
|||
|
||||
// Enable support for v8 inspector.
|
||||
NodeDebugger node_debugger(env);
|
||||
node_debugger.Start(gin_env.platform());
|
||||
node_debugger.Start();
|
||||
|
||||
mate::Dictionary process(gin_env.isolate(), env->process_object());
|
||||
#if defined(OS_WIN)
|
||||
|
|
|
@ -144,7 +144,7 @@ void AtomBrowserMainParts::PostEarlyInitialization() {
|
|||
|
||||
// Enable support for v8 inspector
|
||||
node_debugger_.reset(new NodeDebugger(env));
|
||||
node_debugger_->Start(js_env_->platform());
|
||||
node_debugger_->Start();
|
||||
|
||||
// Add Electron extended APIs.
|
||||
atom_bindings_->BindTo(js_env_->isolate(), env->process_object());
|
||||
|
|
|
@ -19,7 +19,7 @@ NodeDebugger::NodeDebugger(node::Environment* env) : env_(env) {}
|
|||
|
||||
NodeDebugger::~NodeDebugger() {}
|
||||
|
||||
void NodeDebugger::Start(node::MultiIsolatePlatform* platform) {
|
||||
void NodeDebugger::Start() {
|
||||
auto* inspector = env_->inspector_agent();
|
||||
if (inspector == nullptr)
|
||||
return;
|
||||
|
@ -45,8 +45,7 @@ void NodeDebugger::Start(node::MultiIsolatePlatform* platform) {
|
|||
process.Set("_breakFirstLine", true);
|
||||
}
|
||||
|
||||
inspector->Start(static_cast<node::NodePlatform*>(platform), nullptr,
|
||||
options);
|
||||
inspector->Start(/* path */ nullptr, options);
|
||||
DCHECK(env_->inspector_agent()->IsStarted());
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
namespace node {
|
||||
class Environment;
|
||||
class MultiIsolatePlatform;
|
||||
} // namespace node
|
||||
|
||||
namespace atom {
|
||||
|
@ -20,7 +19,7 @@ class NodeDebugger {
|
|||
explicit NodeDebugger(node::Environment* env);
|
||||
~NodeDebugger();
|
||||
|
||||
void Start(node::MultiIsolatePlatform* platform);
|
||||
void Start();
|
||||
|
||||
private:
|
||||
node::Environment* env_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue