bool SetOffset(CodeLocation? loc, uint ilOffset, CorFrame frame, out string errMsg) { if (frame == null || !CanSetNextStatement(loc, ilOffset)) { errMsg = dnSpy_Debugger_Resources.Error_CouldNotSetNextStatement_UnknownReason; return false; } bool failed = !frame.SetILFrameIP(ilOffset); // All frames are invalidated TheDebugger.CallOnProcessStateChanged(); if (failed) { errMsg = dnSpy_Debugger_Resources.Error_CouldNotSetNextStatement; return false; } errMsg = null; return true; }