Fedor Indutny
360ce526fd
debugger: watch, unwatch, watchers
Fixes #1800 .
13 years ago
Fedor Indutny
1b8b097fad
debugger: refactor, no more res.success checks
Fixes #1779 .
13 years ago
Bert Belder
81425598db
Enable console colors on windows by default
13 years ago
Ryan Dahl
e1dc6e6d73
Bind uv_tty_get_winsize
13 years ago
Ryan Dahl
74b6426ec6
Initial pass at new TTY js layer
This breaks Windows.
13 years ago
Fedor Indutny
95866a6445
debugger: export port
Fixes test-debugger-client.js
Fixes #1782 .
13 years ago
Ben Noordhuis
c4eaf7e5a9
crypto: implement randomBytes() and pseudoRandomBytes()
13 years ago
Fedor Indutny
67706b8bb7
Export disableColors from repl, share with debugger
13 years ago
Fedor Indutny
f4124e18cb
debugger: setBreakpoint('fn()')
Fixes #1777
13 years ago
Ryan Dahl
fa2eaeafda
write-only streams should not shutdown
See
https://github.com/joyent/node/issues/1726#issuecomment-2207602
13 years ago
isaacs
c828ded0c2
zlib: Typo. s/opt/opts/
13 years ago
Fedor Indutny
c26cf84a08
debugger: fix backtrace with no frames
Fixes #1768
13 years ago
Fedor Indutny
9b6acc27aa
handle backtrace errors
13 years ago
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
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
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
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
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