Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions INSPECTOR_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
V8 Inspector Integration for Node.js
====================================

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`.
2 changes: 2 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@
['_type!="static_library"', {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-stdlib=libc++',
'-Wl,-no_pie',
'-Wl,-search_paths_first',
],
Expand All @@ -341,6 +342,7 @@
'xcode_settings': {
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x
'OTHER_CPLUSPLUSFLAGS' : ['-stdlib=libc++'],
},
}],
],
Expand Down
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ parser.add_option('--no-browser-globals',
help='do not export browser globals like setTimeout, console, etc. ' +
'(This mode is not officially supported for regular applications)')

parser.add_option('--with-inspector',
action='store_true',
dest='inspector',
help='enable experimental V8 inspector support')

(options, args) = parser.parse_args()

# Expand ~ in the install prefix now, it gets written to multiple files.
Expand Down Expand Up @@ -806,6 +811,7 @@ def configure_node(o):
o['variables']['library_files'] = options.linked_module

o['variables']['asan'] = int(options.enable_asan or 0)
o['variables']['v8_inspector'] = b(options.inspector)

def configure_library(lib, output):
shared_lib = 'shared_' + lib
Expand Down
1 change: 1 addition & 0 deletions deps/v8_inspector/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
platform/v8_inspector/build/rjsmin.pyc
10 changes: 10 additions & 0 deletions deps/v8_inspector/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[submodule "deps/wtf"]
path = deps/wtf
url = https://github.com/repenaxa/wtf
branch = v8_inspector
[submodule "deps/markupsafe"]
path = deps/markupsafe
url = https://github.com/mitsuhiko/markupsafe
[submodule "deps/jinja2"]
path = deps/jinja2
url = https://github.com/mitsuhiko/jinja2
2 changes: 2 additions & 0 deletions deps/v8_inspector/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# v8_inspector
# v8_inspector
1 change: 1 addition & 0 deletions deps/v8_inspector/commit_id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f921fc4349a5fbff31a4e3953f172e3841abdd8b
10 changes: 10 additions & 0 deletions deps/v8_inspector/deps/jinja2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.so
docs/_build
*.pyc
*.pyo
*.egg-info
*.egg
build
dist
.DS_Store
.tox
24 changes: 24 additions & 0 deletions deps/v8_inspector/deps/jinja2/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "pypy"

install:
- pip install tox
script:
- tox -e \
$(echo $TRAVIS_PYTHON_VERSION | sed 's/^\([0-9]\)\.\([0-9]\).*/py\1\2/')

notifications:
email: false
irc:
channels:
- "chat.freenode.net#pocoo"
on_success: change
on_failure: always
use_notice: true
skip_join: true
33 changes: 33 additions & 0 deletions deps/v8_inspector/deps/jinja2/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Jinja is written and maintained by the Jinja Team and various
contributors:

Lead Developer:

- Armin Ronacher <[email protected]>

Developers:

- Christoph Hack
- Georg Brandl

Contributors:

- Bryan McLemore
- Mickaël Guérin <[email protected]>
- Cameron Knight
- Lawrence Journal-World.
- David Cramer

Patches and suggestions:

- Ronny Pfannschmidt
- Axel Böhm
- Alexey Melchakov
- Bryan McLemore
- Clovis Fabricio (nosklo)
- Cameron Knight
- Peter van Dijk (Habbie)
- Stefan Ebner
- Rene Leonhardt
- Thomas Waldmann
- Cory Benfield (Lukasa)
Loading