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

8 Коммитов

Автор 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
ssafejava 21e8230ac0 Added `stackTraceLimit` configuration, fixes #96.
The new option `stackTraceLimit`, like the corresponding option in
Chrome, allows us to specify how many stack frames we want when
stopped at a breakpoint. It can be set as high as you like.
Negative numbers will cause an error.

The default number of frames is set to 50 to prevent possible
performance issues; if you wish to capture all frames, no matter the
consequences, set this option to a high number, like `99999`.
2013-11-12 09:56:08 +01:00
Miroslav Bajtos 68044619a5 Fixed 'get scope properties' to include flags
V8 debugger does not include attributes of properties returned by 'scope'
request. To work around this issue, we use 'scope' request only to get
handle (ref) of the scope and send a regular 'lookup' request to get scope
properties.
2013-06-12 20:19:16 +02:00
Miroslav Bajtos 82c7e825b0 Changed fetchCallFrames to not fetch scope details
Modified CallFramesProvider so that it does not fetch scope details
together with call frames. It creates a special objectId instead.

RuntimeAgent.getProperties checks for this special objectId format
and delegates getProperties to CallFramesProvider, which sends
'scope' debugger request to get scope details.

This change should reduce the time between debugged process hitting
a breakpoint and node-inspector pausing in the browser.
2013-05-30 19:26:48 +02:00
Miroslav Bajtos 06d90d7405 Cleanup: Agents depend on debuggerClient
Modified RuntimeAgent and PageAgent to depend on DebuggerClient instead of
session.

Removed DebuggerClient.sendDebugRequest method.
2013-05-30 12:51:15 +02:00
Miroslav Bajtos c05c203676 Style: added gjslint rules and fixed style issues
Created tools/gjslint.sh that can be used to automatically check for
conformance with Google coding style.

Added semicolons to the end of all statements where it was missing.

Fixed spacing inconsistencies.

Added missing type info to JsDoc comments in ScriptManager.js

Removed commas at end of object literals.

Wrapped extra long lines.
2013-05-30 09:39:34 +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