node_debugger.h 624 B

1234567891011121314151617181920212223242526272829303132
  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. } // namespace node
  10. namespace atom {
  11. // Add support for node's "--inspect" switch.
  12. class NodeDebugger {
  13. public:
  14. explicit NodeDebugger(node::Environment* env);
  15. ~NodeDebugger();
  16. void Start();
  17. private:
  18. node::Environment* env_;
  19. DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
  20. };
  21. } // namespace atom
  22. #endif // ATOM_BROWSER_NODE_DEBUGGER_H_