libraries/v8/runtime.cc
// Set one shot breakpoints for the callback function that is passed to a
// built-in function such as Array.forEach to enable stepping into the callback.
Set one shot breakpoints for the callback function that is passed to a
built-in function such as Array.forEach to enable stepping into the callback.
Set one shot breakpoints for the callback function that is passed to a built - in function such as Array . forEach to enable stepping into the callback .
RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugPrepareStepInIfStepping) {
  SealHandleScope shs(isolate);
#ifdef ENABLE_DEBUGGER_SUPPORT
  Debug* debug = isolate->debug();
  if (!debug->IsStepping()) return isolate->heap()->undefined_value();
  CONVERT_ARG_HANDLE_CHECKED(JSFunction, callback, 0);
  HandleScope scope(isolate);
  debug->ClearStepOut();
  debug->FloodWithOneShot(callback);
#endif  
  return isolate->heap()->undefined_value();
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_DebugPrepareStepInIfStepping ) { SealHandleScope shs ( isolate ) ; #ifdef ENABLE_DEBUGGER_SUPPORT Debug * debug = isolate -> debug ( ) ; if ( ! debug -> IsStepping ( ) ) return isolate -> heap ( ) -> undefined_value ( ) ; CONVERT_ARG_HANDLE_CHECKED ( JSFunction , callback , 0 ) ; HandleScope scope ( isolate ) ; debug -> ClearStepOut ( ) ; debug -> FloodWithOneShot ( callback ) ; #endif return isolate -> heap ( ) -> undefined_value ( ) ; }
Set one shot breakpoints for the callback function that is passed to a
built-in function such as Array.forEach to enable stepping into the callback.
Set one shot breakpoints for the callback function that is passed to a built - in function such as Array . forEach to enable stepping into the callback .
// When leaving the callback, step out has been activated, but not performed // if we do not leave the builtin.  To be able to step into the callback // again, we need to clear the step out at this point. // ENABLE_DEBUGGER_SUPPORT