-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change introduces experimental v8-inspector support. This brings the DevTools debug protocol allowing Node.js to be debugged with Chrome DevTools native, or through other debuggers supporting that protocol. Partial WebSocket support, to the extent required by DevTools, is included. This is derived from the implementation in Blink. This code is currently behind a --with-inspector configure flag.
- Loading branch information
1 parent
477d358
commit 0995140
Showing
15 changed files
with
2,313 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
V8 Inspector Integration for Node.js | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
==================================== | ||
|
||
V8 Inspector integration allows attaching Chrome DevTools to Node.js | ||
instances for debugging and profiling. | ||
|
||
## Building | ||
|
||
To enable V8 Inspector integration, run configure script with `--with-inspector` | ||
flag. Afterwards, use `make` to build Node.js as usual. | ||
|
||
## Running | ||
|
||
V8 Inspector can be enabled by passing `--inspect` flag when starting Node.js | ||
application. It is also possible to supply a custom port with that flag, e.g. | ||
`--inspect=9222` will expect DevTools connection on the port 9222. | ||
|
||
To break on the first line of the application code, provide the `--debug-brk` | ||
flag in addition to `--inspect`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,7 @@ | |
'tools/msvs/genfiles', | ||
'deps/uv/src/ares', | ||
'<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h | ||
'deps/v8' # include/v8_platform.h | ||
'deps/v8', # include/v8_platform.h | ||
], | ||
|
||
'sources': [ | ||
|
@@ -250,6 +250,26 @@ | |
'deps/v8/src/third_party/vtune/v8vtune.gyp:v8_vtune' | ||
], | ||
}], | ||
[ 'v8_inspector=="true"', { | ||
'defines': [ | ||
'HAVE_INSPECTOR=1', | ||
'V8_INSPECTOR_USE_STL=1', | ||
], | ||
'sources': [ | ||
'src/inspector_agent.cc', | ||
'src/inspector_socket.cc', | ||
'src/inspector_socket.h', | ||
'src/inspector-agent.h', | ||
], | ||
'dependencies': [ | ||
'deps/v8_inspector/v8_inspector.gyp:v8_inspector', | ||
], | ||
'include_dirs': [ | ||
'deps/v8_inspector', | ||
'deps/v8_inspector/deps/wtf', # temporary | ||
'<(SHARED_INTERMEDIATE_DIR)/blink', # for inspector | ||
], | ||
}], | ||
[ 'node_use_openssl=="true"', { | ||
'defines': [ 'HAVE_OPENSSL=1' ], | ||
'sources': [ | ||
|
@@ -690,7 +710,10 @@ | |
'target_name': 'cctest', | ||
'type': 'executable', | ||
'dependencies': [ | ||
'deps/openssl/openssl.gyp:openssl', | ||
This comment has been minimized.
Sorry, something went wrong.
rvagg
Member
|
||
'deps/http_parser/http_parser.gyp:http_parser', | ||
'deps/gtest/gtest.gyp:gtest', | ||
'deps/uv/uv.gyp:libuv', | ||
'deps/v8/tools/gyp/v8.gyp:v8', | ||
'deps/v8/tools/gyp/v8.gyp:v8_libplatform' | ||
], | ||
|
@@ -708,7 +731,9 @@ | |
'GTEST_DONT_DEFINE_ASSERT_NE=1', | ||
], | ||
'sources': [ | ||
'src/inspector_socket.cc', | ||
'test/cctest/util.cc', | ||
'test/cctest/inspector_socket.cc', | ||
], | ||
} | ||
], # end targets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
The contents of this file can go in to BUILDING.md, it's similar to ICU and FIPS instructions.