@@ -108,6 +108,8 @@ inherits(V8Debug, EventEmitter);
108108function V8Debug ( ) {
109109 if ( ! ( this instanceof V8Debug ) ) return new V8Debug ( ) ;
110110
111+ this . _Debug = this . get ( 'Debug' ) ;
112+
111113 this . _webkitProtocolEnabled = false ;
112114
113115 // NOTE: Call `_setDebugEventListener` before all other changes in Debug Context.
@@ -128,15 +130,13 @@ function V8Debug() {
128130}
129131
130132V8Debug . prototype . _setDebugEventListener = function ( ) {
131- var Debug = this . get ( 'Debug' ) ;
132- Debug . setListener ( function ( _ , execState , event ) {
133+ this . _Debug . setListener ( function ( _ , execState , event ) {
133134 // TODO(3y3): Handle events here
134135 } ) ;
135136} ;
136137
137138V8Debug . prototype . _unsetDebugEventListener = function ( ) {
138- var Debug = this . get ( 'Debug' ) ;
139- Debug . setListener ( null ) ;
139+ this . _Debug . setListener ( null ) ;
140140} ;
141141
142142V8Debug . prototype . _shareSecurityToken = function ( ) {
@@ -159,8 +159,8 @@ V8Debug.prototype._wrapDebugCommandProcessor = function() {
159159 proto . extendedProcessDebugJSONRequestHandles_ [ 'disconnect' ] = function ( request , response ) {
160160 this . emit ( 'close' ) ;
161161 proto . _DebugCommandProcessor ;
162- proto . processDebugJSONRequest ( request , response ) ;
163- return true ;
162+ // proto.processDebugJSONRequest(request, response);
163+ // return true;
164164 } . bind ( this ) ;
165165} ;
166166
@@ -172,6 +172,14 @@ V8Debug.prototype._unwrapDebugCommandProcessor = function() {
172172 proto . extendedProcessDebugJSONRequestAsyncHandles_ = { } ;
173173} ;
174174
175+ V8Debug . prototype . setPauseOnNextStatement = function ( pause ) {
176+ binding . setPauseOnNextStatement ( pause === true ) ;
177+ } ;
178+
179+ V8Debug . prototype . scripts = function ( ) {
180+ return this . _Debug . scripts ( ) ;
181+ } ;
182+
175183V8Debug . prototype . register =
176184V8Debug . prototype . registerCommand = function ( name , func ) {
177185 var proto = this . _DebugCommandProcessor ;
0 commit comments