2015-08-27 12:25:28 +08:00
|
|
|
// 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 13:56:58 -07:00
|
|
|
#ifndef SHELL_BROWSER_NODE_DEBUGGER_H_
|
|
|
|
#define SHELL_BROWSER_NODE_DEBUGGER_H_
|
2015-08-27 12:25:28 +08:00
|
|
|
|
2017-06-13 00:23:11 +05:30
|
|
|
#include "base/macros.h"
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
class Environment;
|
2018-04-17 21:44:10 -04:00
|
|
|
} // namespace node
|
2015-08-27 12:25:28 +08:00
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
namespace electron {
|
2015-08-27 12:25:28 +08:00
|
|
|
|
2017-05-15 09:30:55 -07:00
|
|
|
// Add support for node's "--inspect" switch.
|
|
|
|
class NodeDebugger {
|
2015-08-27 12:25:28 +08:00
|
|
|
public:
|
2017-05-15 09:30:55 -07:00
|
|
|
explicit NodeDebugger(node::Environment* env);
|
|
|
|
~NodeDebugger();
|
2015-08-27 12:25:28 +08:00
|
|
|
|
2018-09-04 11:15:17 +02:00
|
|
|
void Start();
|
2019-04-30 15:44:40 -07:00
|
|
|
void Stop();
|
2015-08-27 12:25:28 +08:00
|
|
|
|
|
|
|
private:
|
2017-05-15 09:30:55 -07:00
|
|
|
node::Environment* env_;
|
2015-08-27 12:25:28 +08:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
|
|
|
|
};
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
} // namespace electron
|
2015-08-27 12:25:28 +08:00
|
|
|
|
2019-06-19 13:56:58 -07:00
|
|
|
#endif // SHELL_BROWSER_NODE_DEBUGGER_H_
|