internal bool SetBreakpointAt(ProtoCore.CodeModel.CodePoint breakpoint) { if ((null != internalWorker) && internalWorker.IsBusy) { return(false); } // The script is executed without a debugger attached, // therefore this call does not make sense right now. if (null != scriptRunner) { return(false); } if (null == debugRunner) { return(false); // Not debugging, cannot set a breakpoint. } CodePoint location = breakpoint; location.CharNo = location.CharNo + 1; location.LineNo = location.LineNo + 1; return(debugRunner.ToggleBreakpoint(location)); }