Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Miroslav Bajtoš bbf989ca5c Use jshint instead of gjslint
Add jshint configuration, configure npm to run jshint in "pretest".

Fix existing issues to make jshint pass.
2014-03-14 08:32:36 +01:00
3y3 4a8b957435 debugger isRunning state changes
Check isRunning state on 'break' and exception 'events'.
Update isRunning state on 'connect' event with help of 'gc' command.
2014-03-13 08:51:22 +04:00
Miroslav Bajtos 6fa63fe0fd Added debug logging of communication
Added debug logs for devtools protocol and V8 debugger protocol.

Set DEBUG=node-inspector:protocol:* to enable.
2013-11-13 09:06:01 +01:00
Miroslav Bajtos d853d18325 Extracted debugger communication to DebuggerClient
Moved debugger-related code from session to DebuggerClient.

Moved sendDebugRequest from debugger to DebuggerClient.

Fixed a bug where a front-end page served from an old node-inspector
process crashed the new node-inspector process after restart.
2013-05-30 10:03:57 +02:00
Miroslav Bajtos 9ca7660c08 Moved detection of conn errors to debugger.
Moved code for detecting special errors (ECONNRESET, ECONNREFUSED)
from session to debugger.

Modified debugger 'close' event to send close reason as the first parameter.
2013-05-30 09:44:15 +02:00
Miroslav Bajtos c130def41d Code clean-up
Fixed potential bug in `ScriptManager.addScript` where frontend url was used
instead of debugger script name.

Fixed potential bug in `breakEvent` where "go to location" breakpoint
was cleared even if we hit a breakpoint in a hidden file. This event
sends `continue` request immediately, thus the program would never pause
as the result.

Simplified `breakEvent` and removed script source fetching, since we are
already sending new scripts to the frontend as soon as they are loaded.

Removed `includeSource: true` from the debugger request used to load scripts,
since the frontend always sends a standalone request to get script source code.

Moved Agent registration from session.js to FrontendCommandHandler.

Replaced usage of debugger.request() with sendDebugRequest() and renamed
request to _request. There are stil two places where debugger.request is used,
but those are old functions that are never executed.
(We will remove or rewrite them later).

Wrapped lines longer than 80 characters.
2013-05-25 18:13:55 +02:00
Miroslav Bajtos 6b93aa7dc6 Detach from debugger when front-end disconnects.
Modified session behaviour so that back-end closes session and detaches
from the debugger when front-end web-socked disconnects.

Changed handling of debugger-connection errors so that front-end displays
popup window with error description when back-end cannot connect to debugger.

When a session starts, all previously set breakpoints are removed, since
they were already deactivated by V8 debugger.
2013-05-20 09:04:53 +02:00
Miroslav Bajtos d293d3441d Implemented RuntimeAget.getProperties()
* Fixed convert.v8RefToInspectorObject to correctly decode object class name
  and buffer/array size into description.

* Modified debugger.sendDebugRequest to send refs lookup table to callback.

* Extracted code for launching debugger from mocha tests into a standalone
   file (module).
2013-05-17 21:46:29 +02:00
Miroslav Bajtos 9b98166a25 Implemented Call Stack.
Also added async module as a new dependency.
2013-05-17 21:38:17 +02:00
Danny Coates 0e1ec59cda some delinting 2010-12-07 23:41:06 -07:00
Danny Coates 0d54b099ea minor code style refactoring 2010-11-06 18:37:27 -06:00
Danny Coates e11b958a74 cleaned up unused functions 2010-10-27 23:17:06 -06:00
Danny Coates 54b3f67c1b store app settings in localStorage and implemented liveedit 2010-10-27 20:45:05 -06:00
Danny Coates 83ff070127 changed initialization and moved callbacks to debugger.js 2010-10-25 20:41:25 -06:00
Danny Coates 5efcf0ea0c handle multi-byte characters from node. Closes #12 2010-09-13 20:57:52 -06:00
Danny Coates b52dca6607 removed sys references 2010-09-10 17:59:18 -06:00
Danny Coates 56c21409b3 refactored backend and removed --start flag
- seperated session and server components
- moved dependencies to /vendor
- added new ui for specifying node debug port
- fix breakpoint syncing across windows
- groundwork for multiple debug sessions
- removed all child process functionality
2010-09-09 23:28:35 -06:00
Danny Coates 390020a5f1 added __proto__ to variable tree, moved debugger.js and session.js to lib 2010-08-24 20:51:11 -06:00