summaryrefslogtreecommitdiff
path: root/lib/_debugger.js
Commit message (Collapse)AuthorAgeFilesLines
* deps: re-implement debugger-agentFedor Indutny2014-10-081-0/+4
| | | | | Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* lib: improved forEach object performanceMajid Arif Siddiqui2014-09-051-2/+4
| | | | Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* debugger: don't set the `repl.prompt` stringNathan Rajlich2014-02-211-2/+0
| | | | | | | It wasn't doing anything, and actually due to 3ae0b17c76f693dd2e68a46f78c7dc7f595b33c6, it was causing the readline `prompt()` function to be overwritten which throws an error in the REPL shortly after.
* Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-02-171-2/+3
|\ | | | | | | | | Conflicts: src/node_zlib.cc
| * debugger: Fix breakpoint not showing after restartFarid Neshat2014-02-171-2/+3
| | | | | | | | | | | | | | | | | | | | The reason this wasn't working was because after restart, when restoring breakpoints the scripts wasn't loaded, so the breakpoint.script was undefined. As a fix I added another check to use breakpoint.scriptReq instead of breakpoint.script, which is the same except when the breakpoint is a function. fixes #7027
* | debugger: remove unused definition `currentSource`Oguz Bastemur2014-02-031-1/+0
| | | | | | | | Client's property `currentSource` has no use throughout the project.
* | debug client: connect after child is readyAlexis Campailla2014-01-201-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | We now wait to connect to the debuggee until we know that its error stream has data, to ensure that the output message "connecting..... ok" appears after "Debugger listening on port xyz" I also increased the test timeout to let the more complex tests finish in time on Windows This change fixes the following unit tests on Windows: test-debugger-repl.js test-debugger-repl-term.js test-debugger-repl-utf8.js test-debugger-repl-restart.js
* | Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2013-10-251-1/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog deps/uv/ChangeLog deps/uv/include/uv-darwin.h deps/uv/src/unix/fsevents.c deps/uv/src/unix/process.c deps/uv/src/version.c doc/api/addons.markdown doc/api/cluster.markdown doc/api/http.markdown lib/http.js lib/tls.js src/node_crypto.cc src/node_http_parser.cc src/node_version.h src/pipe_wrap.cc src/v8abbr.h src/v8ustack.d test/simple/test-http-pipeline-flood.js
| * debugger: Fix bug in sb() with unnamed scriptMaxim Bogushevich2013-10-251-1/+3
| | | | | | | | setBreakpoint() cause error when unnamed script is loaded
| * debugger: breakpoints in scripts not loaded yetMiroslav Bajtoš2013-05-021-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When developer calls setBreakpoint with an unknown script name, we convert the script name into regular expression matching all paths ending with given name (name can be a relative path too). To create such breakpoint in V8, we use type `scriptRegEx` instead of `scriptId` for `setbreakpoint` request. To restore such breakpoint, we save the original script name send by the user. We use this original name to set (restore) breakpoint in the new child process. This is a back-port of commit 5db936d from the master branch.
| * debugger: `restart` with custom debug portMiroslav Bajtoš2013-04-261-3/+4
| | | | | | | | | | | | | | | | | | Fixed a bug in debugger repl where `restart` command did not work when a custom debug port was specified via command-line option --port={number}. File test/simple/helper-debugger-repl.js was extracted from test/simple/test-debugger-repl.js
* | debugger: count space for line numbers correctlyAlex Kocharin2013-10-061-20/+6
| |
* | debugger: show current line, fix for #6150Alex Kocharin2013-10-011-1/+8
| |
* | debugger: repeat last commandAlex Kocharin2013-10-011-2/+2
| | | | | | | | Regression introduced by commit 9ef9a9d.
* | stream: return this from pause()/resume()isaacs2013-09-041-2/+4
| |
* | fixes #6031 spelling errorsMatthew Aynalem2013-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | explictly => explicitly accesss => access througput => throughput epxression => expression communiction => communication becuase => because repersent => represent condonitions => conditions decompresion => decompression intentially => intentionally eventes => events listning => listening resicved => received becuase => because fundimental => fundamental colapse => collapse privlages => privileges sufficently => sufficiently hapepns => happens expliclitly => explicitly thier => their shold => should
* | lib: remove unused variables and functionsBrian White2013-08-151-2/+1
| |
* | src: Replace macros with util functionsisaacs2013-08-011-10/+10
| |
* | lib: macro-ify type checksBen Noordhuis2013-07-241-11/+10
| | | | | | | | | | Increases the grep factor. Makes it easier to harmonize type checks across the code base.
* | debugger: fix bug in breakpoint regex escapingMiroslav Bajtoš2013-04-291-2/+2
| | | | | | | | | | Fix a bug in setBreakpoint() where not all regex characters are escaped when constructing scriptRegEx for V8.
* | debugger: breakpoints in scripts not loaded yetMiroslav Bajtoš2013-04-271-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | When developer calls setBreakpoint with an unknown script name, we convert the script name into regular expression matching all paths ending with given name (name can be a relative path too). To create such breakpoint in V8, we use type `scriptRegEx` instead of `scriptId` for `setbreakpoint` request. To restore such breakpoint, we save the original script name send by the user. We use this original name to set (restore) breakpoint in the new child process.
* | debugger: print port number when connecting to debuggeeMiroslav Bajtoš2013-04-261-1/+1
| | | | | | | | | | To improve troubleshooting of debugger problems in the future, the debugger repl now prints the port it is connecting to.
* | debugger: `restart` with custom debug portMiroslav Bajtoš2013-04-261-3/+4
|/ | | | | | | | | Fixed a bug in debugger repl where `restart` command did not work when a custom debug port was specified via command-line option --port={number}. File test/simple/helper-debugger-repl.js was extracted from test/simple/test-debugger-repl.js
* streams2: Call read(0) on resume()isaacs2012-12-141-1/+1
| | | | | | Otherwise (especially with stdin) you sometimes end up in cases where the high water mark is zero, and the current buffer is at 0, and it doesn't need a readable event, so it never calls _read().
* debugger: exit and kill child on SIGTERM or SIGHUPFedor Indutny2012-11-041-3/+4
|
* debugger: test repeating last commandFedor Indutny2012-09-281-1/+9
| | | | | * debugger: Add NODE_FORCE_READLINE environment variable, handle `SIGINT`'s sent to process while in this mode.
* Fixed a bug with last command repeating in debuggerAlex Kocharin2012-09-281-1/+1
|
* Remove octal escape sequences and avoid reserved keywordJonas Westerlund2012-07-061-3/+3
| | | | Both are errors in strict mode.
* debugger: support mirroring Date objectsFedor Indutny2012-05-021-0/+2
| | | | * fixes #3203
* repl: add a 'useColors' option to the replNathan Rajlich2012-03-271-3/+6
| | | | | | This should only be minimally used, since the `terminal` value will usually be what you are expecting. This option is specifically for the case where `terminal` is false, but you still want colors to be output (or vice-versa).
* repl: fix 'terminal' mode autodetection on global replsNathan Rajlich2012-03-261-3/+6
| | | | Fixes test/simple/test-force-repl.js
* readline: migrate ansi/vt100 logic from tty to readlineNathan Rajlich2012-03-261-7/+9
| | | | | | | | The overall goal here is to make readline more interoperable with other node Streams like say a net.Socket instance, in "terminal" mode. See #2922 for all the details. Closes #2922.
* debugger: breakOnExceptionFedor Indutny2012-03-191-6/+17
| | | | Do not break automatically on exception, fixes #2926
* debugger: remove 'repl' command from builtinLibsFedor Indutny2012-03-191-0/+3
| | | | * It was displaying useless warning
* debugger: exit process on repl exitFedor Indutny2012-03-191-1/+5
| | | | | * When entering repl - clone 'SIGINT' listeners array (instead of using existing), as it will be spliced in .removeAllListeners() call later.
* Removed `rl.on('close', ...)` callbackColton Baker2012-02-221-6/+1
|
* Lint all the JavaScripts.isaacs2012-02-181-8/+8
|
* debugger: export `debug_port` to `process`Fedor Indutny2012-02-121-2/+11
| | | | | | | | | | | | | | | `process.debug_port` is useful for changing debugger port in runtime, before starting it (via SIGUSR1). Using `--port=` argument for debugger repl, tests will run debugger server on a `common.PORT` (as it usually does for any other servers). `process._debugEnd()` stops debugger and its server. * debugger: implemented process._debugEnd(), `node debug --port=5858 app.js` * test: start debugger repl on common.PORT * fixes #2613 * fixes #2614
* Revert support for isolates.Ben Noordhuis2012-02-061-50/+14
| | | | | | | | | | | | It was decided that the performance benefits that isolates offer (faster spin-up times for worker processes, faster inter-worker communication, possibly a lower memory footprint) are not actual bottlenecks for most people and do not outweigh the potential stability issues and intrusive changes to the code base that first-class support for isolates requires. Hence, this commit backs out all isolates-related changes. Good bye, isolates. We hardly knew ye.
* debug threadsFedor Indutny2012-01-101-14/+50
|
* break on exceptionFedor Indutny2011-12-191-5/+27
| | | | Fixes #2304
* use inlineRefs, as it's already implFedor Indutny2011-12-191-1/+1
|
* pass noRefs as argumentsFedor Indutny2011-12-191-1/+1
|
* pause commandFedor Indutny2011-12-191-1/+20
|
* allow setBreakpoint(line)Fedor Indutny2011-12-191-0/+6
|
* preserve cursor posFedor Indutny2011-12-191-1/+1
| | | | * configurable via .prompt()'s preserveCursor argument (false by default)
* request backtrace w/o refs, see #1745Fedor Indutny2011-12-191-1/+1
|
* debugger: correctly handle source with multi-byte charactersShigeki Ohtsu2011-11-111-9/+21
|
* debugger: do not request `continue` on connectionFedor Indutny2011-11-041-12/+6
| | | | | * Updated test * Use `node debug file`, not `node debug -e "..."` in test
* Implement process._debugProcessBert Belder2011-11-041-1/+1
|