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

9 Коммитов

Автор SHA1 Сообщение Дата
Miroslav Bajtoš ef9e81aa36 Defer "scriptParsed" until "Page.getResourceTree"
DevTools front-end expects to receive Page.getResourceTree response
before any "scriptParsed" events. When "scriptParsed" arrives first,
the source-map handler throws an exception.

Add FrontendClient methods pauseEvents() and resumeEvents().

Change PageAgent to EventEmitter, add a "resource-tree" event that
is emitted at the time when the Page.getResourceTree response is sent.

FrontendCommandHandler uses these two features to pause events on start
and resume them on "resource-tree".
2014-02-20 17:01:41 +01:00
Kenneth Auchenberg a00f36d336 Use WebSockets instead of socket.io.
Changed the socket implementation to use WS-server, and added
utility function to generate the web socket url with the correct
protocol and relative path.
2014-02-10 07:22:23 +01:00
3y3 c7f5efcf31 Small indentation fixes 2014-02-05 14:09:23 +04:00
Dave ef87549b89 Removed false error messages on reload 2013-12-02 15:10:24 +01: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 d64c5bf5fa lib,Overrides: support the updated front-end
- Registered additional no-op commands
- Added `column` property to console log messages
- Disabled warning about changes not persisted to filesystem
- Added `hitBreakpoints` to `Debugger.paused` message
- Simplified Debugger._handleChangeLiveOrRestartFrameResponse by removing
  stepIntoAndSendResponse(), as this is handled by front-end now
- Removed patch for `loadXHR()` and implememented source-maps loading using
  the new command `Network.loadResourceForFrontend`.
2013-09-10 11:28:12 +01:00
Miroslav Bajtos a2b6092f47 Improved handling of agent methods not implemented
Modified FrontendCommandHandler so that it returns an error response for
methods not implemented.

Modified FrontendClient to send a log message to front-end when a request
failed.
2013-06-06 11:44:44 +02: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 16ab6024d1 Extracted frontend communication to FrontendClient
Moved methods like sendResponse, sendEvent, etc. to FrontendClient.
Modified Agents and FrontendCommandHandler to use this new object
instead of session.

Removed ping message since it is no longer needed (socket.io can keep
the connection alive or handle reconnect).
2013-05-30 09:46:48 +02:00