@@ -109,6 +109,8 @@ inherits(V8Debug, EventEmitter);
109109function V8Debug ( ) {
110110 if ( ! ( this instanceof V8Debug ) ) return new V8Debug ( ) ;
111111
112+ this . _Debug = this . get ( 'Debug' ) ;
113+
112114 this . _webkitProtocolEnabled = false ;
113115
114116 // NOTE: Call `_setDebugEventListener` before all other changes in Debug Context.
@@ -129,15 +131,13 @@ function V8Debug() {
129131}
130132
131133V8Debug . prototype . _setDebugEventListener = function ( ) {
132- var Debug = this . get ( 'Debug' ) ;
133- Debug . setListener ( function ( _ , execState , event ) {
134+ this . _Debug . setListener ( function ( _ , execState , event ) {
134135 // TODO(3y3): Handle events here
135136 } ) ;
136137} ;
137138
138139V8Debug . prototype . _unsetDebugEventListener = function ( ) {
139- var Debug = this . get ( 'Debug' ) ;
140- Debug . setListener ( null ) ;
140+ this . _Debug . setListener ( null ) ;
141141} ;
142142
143143V8Debug . prototype . _shareSecurityToken = function ( ) {
@@ -160,8 +160,8 @@ V8Debug.prototype._wrapDebugCommandProcessor = function() {
160160 proto . extendedProcessDebugJSONRequestHandles_ [ 'disconnect' ] = function ( request , response ) {
161161 this . emit ( 'close' ) ;
162162 proto . _DebugCommandProcessor ;
163- proto . processDebugJSONRequest ( request , response ) ;
164- return true ;
163+ // proto.processDebugJSONRequest(request, response);
164+ // return true;
165165 } . bind ( this ) ;
166166} ;
167167
@@ -173,6 +173,14 @@ V8Debug.prototype._unwrapDebugCommandProcessor = function() {
173173 proto . extendedProcessDebugJSONRequestAsyncHandles_ = { } ;
174174} ;
175175
176+ V8Debug . prototype . setPauseOnNextStatement = function ( pause ) {
177+ binding . setPauseOnNextStatement ( pause === true ) ;
178+ } ;
179+
180+ V8Debug . prototype . scripts = function ( ) {
181+ return this . _Debug . scripts ( ) ;
182+ } ;
183+
176184V8Debug . prototype . register =
177185V8Debug . prototype . registerCommand = function ( name , func ) {
178186 var proto = this . _DebugCommandProcessor ;
0 commit comments