internal void SetBreakPointCondition(JBreakpoint breakpoint) { DebugWriteCommand("Set BP Condition"); lock (_socketLock) { _stream.Write(SetBreakPointConditionCommandBytes); _stream.WriteInt32(breakpoint.Id); SendCondition(breakpoint); } }
public BreakpointHitEventArgs(JBreakpoint breakpoint, JThread thread) { _breakpoint = breakpoint; _thread = thread; }
internal void DisableBreakPoint(JBreakpoint unboundBreakpoint) { if (_stream != null && _socket.Connected) { DebugWriteCommand("Disable Breakpoint"); lock (_socketLock) { if (unboundBreakpoint.IsDjangoBreakpoint) { _stream.Write(RemoveDjangoBreakPointCommandBytes); } else { _stream.Write(RemoveBreakPointCommandBytes); } _stream.WriteInt32(unboundBreakpoint.LineNo); _stream.WriteInt32(unboundBreakpoint.Id); if (unboundBreakpoint.IsDjangoBreakpoint) { _stream.WriteString(unboundBreakpoint.Filename); } } } }
internal void RemoveBreakPoint(JBreakpoint unboundBreakpoint) { DebugWriteCommand("Remove Breakpoint"); _breakpoints.Remove(unboundBreakpoint.Id); DisableBreakPoint(unboundBreakpoint); }
internal void BindBreakpoint(JBreakpoint breakpoint) { DebugWriteCommand(String.Format("Bind Breakpoint IsDjango: {0}", breakpoint.IsDjangoBreakpoint)); lock (_socketLock) { if (breakpoint.IsDjangoBreakpoint) { _stream.Write(AddDjangoBreakPointCommandBytes); } else { _stream.Write(SetBreakPointCommandBytes); } _stream.WriteInt32(breakpoint.Id); _stream.WriteInt32(breakpoint.LineNo); _stream.WriteString(MapFile(breakpoint.Filename)); if (!breakpoint.IsDjangoBreakpoint) { SendCondition(breakpoint); } } }
public JBreakpoint AddDjangoBreakPoint(string filename, int lineNo) { int id = _breakpointCounter++; var res = new JBreakpoint(this, filename, lineNo, null, false, id, true); _breakpoints[id] = res; return res; }
public JBreakpoint AddBreakPoint(string filename, int lineNo, string condition = "", bool breakWhenChanged = false) { int id = _breakpointCounter++; var res = new JBreakpoint(this, filename, lineNo, condition, breakWhenChanged, id); _breakpoints[id] = res; return res; }
private void SendCondition(JBreakpoint breakpoint) { DebugWriteCommand("Send BP Condition"); _stream.WriteString(breakpoint.Condition ?? ""); _stream.WriteInt32(breakpoint.BreakWhenChanged ? 1 : 0); }
public BreakpointEventArgs(JBreakpoint breakpoint) { _breakpoint = breakpoint; }