electron/atom/browser/node_debugger.h

37 lines
693 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.
#ifndef ATOM_BROWSER_NODE_DEBUGGER_H_
#define ATOM_BROWSER_NODE_DEBUGGER_H_
2016-07-04 06:08:55 +00:00
#include <memory>
#include "base/macros.h"
namespace node {
class Environment;
class NodePlatform;
}
namespace atom {
// Add support for node's "--inspect" switch.
class NodeDebugger {
public:
explicit NodeDebugger(node::Environment* env);
~NodeDebugger();
void Start();
private:
node::Environment* env_;
std::unique_ptr<node::NodePlatform> platform_;
DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
};
} // namespace atom
#endif // ATOM_BROWSER_NODE_DEBUGGER_H_