/***** UTILS *****/ public void __tick(TraceInfo trace, ArrayMemory locals) { TickHandler tickHandler = scope.getTickHandler(); if (tickHandler != null) { IObject $this = this.getLateObject(); if ($this != null) { Memory value = ObjectMemory.valueOf($this); if ($this instanceof Closure) { value = ((Closure) $this).getSelf(); } if (value.isObject()) { locals.putAsKeyString("this", value); } } tickHandler.onTick(this, trace, locals); } }
if (compileScope.getTickHandler() == null) { throw new LaunchException("Cannot find a debugger, please add the jphp-debugger dependency");