electron/shell/browser/node_debugger.h

34 lines
650 B
C
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
2019-06-19 20:56:58 +00:00
#ifndef SHELL_BROWSER_NODE_DEBUGGER_H_
#define SHELL_BROWSER_NODE_DEBUGGER_H_
#include "base/macros.h"
namespace node {
class Environment;
2018-04-18 01:44:10 +00:00
} // namespace node
namespace electron {
// Add support for node's "--inspect" switch.
class NodeDebugger {
public:
explicit NodeDebugger(node::Environment* env);
~NodeDebugger();
void Start();
void Stop();
private:
node::Environment* env_;
DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
};
} // namespace electron
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_NODE_DEBUGGER_H_