node_debugger.h 650 B

123456789101112131415161718192021222324252627282930313233
  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 SHELL_BROWSER_NODE_DEBUGGER_H_
  5. #define SHELL_BROWSER_NODE_DEBUGGER_H_
  6. #include "base/macros.h"
  7. namespace node {
  8. class Environment;
  9. } // namespace node
  10. namespace electron {
  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. void Stop();
  18. private:
  19. node::Environment* env_;
  20. DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
  21. };
  22. } // namespace electron
  23. #endif // SHELL_BROWSER_NODE_DEBUGGER_H_