node_debugger.h 688 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_NODE_DEBUGGER_H_
  5. #define ATOM_BROWSER_NODE_DEBUGGER_H_
  6. #include "base/macros.h"
  7. namespace node {
  8. class Environment;
  9. class MultiIsolatePlatform;
  10. } // namespace node
  11. namespace atom {
  12. // Add support for node's "--inspect" switch.
  13. class NodeDebugger {
  14. public:
  15. explicit NodeDebugger(node::Environment* env);
  16. ~NodeDebugger();
  17. void Start(node::MultiIsolatePlatform* platform);
  18. private:
  19. node::Environment* env_;
  20. DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
  21. };
  22. } // namespace atom
  23. #endif // ATOM_BROWSER_NODE_DEBUGGER_H_