Fedor Indutny
9e09fc0508
more cli options
* node debug localhost:5858 - connects to remote debugger
* node debug -p `pgrep node` - connects to running process
* Fixed double-run of debugger on SIGUSR1
13 years ago
Eric Lovett
f9fec3a2d6
net: callback to socket.write should always be called asynchronously
13 years ago
Ben Noordhuis
f6bce20e5e
buffers: handle bad length argument in constructor
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
13 years ago
Ben Noordhuis
d157131439
buffers: handle bad length argument in constructor
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
13 years ago
Fedor Indutny
43cb4ec76b
debugger fix for #1707
13 years ago
Fedor Indutny
39fec6003e
debugger: remove useless clearlines, updated test
* remove useless clearline call at Interface start
* silence after .handleBreak()
* output '\b' if this.stdout is not a tty (debugger)
* add '\b' checks for clearline (test)
13 years ago
Fedor Indutny
78d91ff074
don't use global vars
13 years ago
Fedor Indutny
2010071339
readline: custom streams support
13 years ago
Ben Leslie
a4e10cdb07
Raise an error when a malformed package.json file is found.
The current behaviour will silently ignore any parsing errors
that may occur when loading a package.json file. This makes
debugging errors in the package.json file very difficult.
This changes the behaviour that that errors opening and reading
the file package.json file continue to be ignored, but errors
in parsing will throw an exception.
13 years ago
Fedor Indutny
1e37efb08b
initial tests
* Don't buffer command, before it's execution (repl)
* `quit` command, custom streams for .start, stubbed out test, disable
history repeation for non-tty (debugger)
13 years ago
Igor Zinkovsky
66293f6e98
fix spelling
13 years ago
Igor Zinkovsky
8fe5712477
fs watcher binding
13 years ago
Fedor Indutny
8efe7a8304
[debugger] shorten break message
13 years ago
Fedor Indutny
79fd1f7f0b
[debugger] optimize context's properties initialization, make 'list' a function, not a getter
13 years ago
Fedor Indutny
3148f1400e
[debugger] fix 'debug> connecting...', fixed autostart (XXX figure out why it wasn't working in some cases), fixed highlighting for first line of module's code
13 years ago
isaacs
e06ce7562c
Fix #1707 hasOwnProperty usage
If hasOwnProperty is overridden, then calling `obj.hasOwnProperty(prop)`
can fail. Any time a dictionary of user-generated items is built, we
cannot rely on hasOwnProperty being safe, so must call it from the
Object.prototype explicitly.
13 years ago
isaacs
98990b9779
Fix #1707 hasOwnProperty usage
13 years ago
koichik
fdbfc9ceb7
net: Socket write encoding case sensitivity
Fixes #1586 .
14 years ago
Nathan Rajlich
0c91a835ff
util: isRegExp() should not call toString() on its argument
An overloaded toString() method may have side effects
so don't call it for a simple type check.
Back-port of 54b409d
to the v0.4 branch.
14 years ago
Ryan Dahl
827b9c5f1f
net: fix throw error
Thanks Tobi
14 years ago
Ryan Dahl
9cd510846e
Fixes #1546 . Remove expensive debug call.
14 years ago
Fedor Indutny
b20c98e427
fix 'null' mirroring
13 years ago
Fedor Indutny
a0556fcbe1
repeat last command if empty line was entered
13 years ago
Fedor Indutny
41a41825f6
micro-refactor, use rli.output.write instead of rli.write ('line' event was emitted for those writes)
13 years ago
Fedor Indutny
292e2ea5ad
fix breakpoint prefixing in list()
13 years ago
Fedor Indutny
c8ffbcd9f1
added comments, spawn child process automatically at debugger's start
13 years ago
Fedor Indutny
4ff15512f5
remove arrow from current source line
13 years ago
Fedor Indutny
ff05beeef3
fix inspection of zero
13 years ago
Ryan Dahl
6326b04b07
Fix test-regress-GH-819
Problem was exposed in 12798c6
.
13 years ago
Ben Noordhuis
243c218c7a
tls: remove superfluous setOptions() call
13 years ago
isaacs
f90264d246
zlib: lint
13 years ago
isaacs
d104bfd5a6
zlib: Fix test so that it's not trivially passing, then pass it.
Regression from the refactor to move more things into JS.
13 years ago
isaacs
5b8e1dabbc
Initial pass at zlib bindings
13 years ago
Fedor Indutny
145fac7fb1
setBreakpoint w/o arguments should set one on a current line
13 years ago
Fedor Indutny
4a537c1b88
restore breakpoints after restart, fix message handling
13 years ago
Fedor Indutny
d6088b2667
fix spawn call, customFds ain't supported yet
13 years ago
Ryan Dahl
5cb1fd2e32
net.Socket(fd) should start readable and writable
13 years ago
Ryan Dahl
70966002c0
Forward customFds to ChildProcess.spawn
Fixes #1695
13 years ago
Fedor Indutny
d2dadf32db
[debugger] added setBreakpoint and clearBreakpoint to help message
group commands in help message, added shortcuts info
13 years ago
Fedor Indutny
1dd3b68c4f
[debugger] separate history of control and debug, make scripts command getter
13 years ago
Fedor Indutny
19194f87c5
[debugger] setBreakpoint, clearBreakpoint, fix reqSource error handling, show breakpoints in list()
13 years ago
Fedor Indutny
3a7713ff10
[debugger] synonym=>shortcut, added shortcut for backtrace (as in gdb), simplify regexp
13 years ago
Fedor Indutny
f2ec46a7a7
[debugger] color mark in _debugger, kill child on Ctrl+D
13 years ago
Ben Noordhuis
92d4ed397b
readline: handle null completer graciously
Fixes #1698 .
13 years ago
Fedor Indutny
9fb186892c
[debugger] requireConnection() returns bool, break UI
Stepping commands will overwrite output of previous step command
13 years ago
Fedor Indutny
57388d8b2e
[repl] add error handling for async scope fetching
13 years ago
Ryan Dahl
8c87250816
Do not load readline from util.inspect
This causes all modules using console.log() to load readline which seems
unnecessary.
13 years ago
Ryan Dahl
0aad61e802
Use net_uv instead of net_legacy for stdio
Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.
13 years ago
Ryan Dahl
caaa59c559
Wrap uv_pipe_open, implement net.Stream(fd);
Fixes simple/test-child-process-ipc on unix.
13 years ago
Thomas Shinnick
7dc2c492e9
fs: unguarded fs.watchFile cache statWatchers checking fixed
Use hasOwnProperty to check filepath cache; previous code could fail if
a filepath duplicated a chained property name.
Fixes #1637 .
13 years ago