示例#1
0
文件: JProcess.cs 项目: borota/JTVS
 internal void SetBreakPointCondition(JBreakpoint breakpoint)
 {
     DebugWriteCommand("Set BP Condition");
     lock (_socketLock) {
         _stream.Write(SetBreakPointConditionCommandBytes);
         _stream.WriteInt32(breakpoint.Id);
         SendCondition(breakpoint);
     }
 }
示例#2
0
 public BreakpointHitEventArgs(JBreakpoint breakpoint, JThread thread)
 {
     _breakpoint = breakpoint;
     _thread = thread;
 }
示例#3
0
文件: JProcess.cs 项目: borota/JTVS
 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);
             }
         }
     }
 }
示例#4
0
文件: JProcess.cs 项目: borota/JTVS
        internal void RemoveBreakPoint(JBreakpoint unboundBreakpoint)
        {
            DebugWriteCommand("Remove Breakpoint");
            _breakpoints.Remove(unboundBreakpoint.Id);

            DisableBreakPoint(unboundBreakpoint);
        }
示例#5
0
文件: JProcess.cs 项目: borota/JTVS
        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);
                }
            }
        }
示例#6
0
文件: JProcess.cs 项目: borota/JTVS
 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;
 }
示例#7
0
文件: JProcess.cs 项目: borota/JTVS
 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;
 }
示例#8
0
文件: JProcess.cs 项目: borota/JTVS
 private void SendCondition(JBreakpoint breakpoint)
 {
     DebugWriteCommand("Send BP Condition");
     _stream.WriteString(breakpoint.Condition ?? "");
     _stream.WriteInt32(breakpoint.BreakWhenChanged ? 1 : 0);
 }
示例#9
0
 public BreakpointEventArgs(JBreakpoint breakpoint)
 {
     _breakpoint = breakpoint;
 }