Beispiel #1
0
 public JStackFrame(JThread thread, string frameName, string filename, int startLine, int endLine, int lineNo, int argCount, int frameId, FrameKind kind)
 {
     _thread = thread;
     _frameName = frameName;
     _filename = filename;
     _argCount = argCount;
     _lineNo = lineNo;
     _frameId = frameId;
     _startLine = startLine;
     _endLine = endLine;
     _kind = kind;
 }
Beispiel #2
0
 public BreakpointHitEventArgs(JBreakpoint breakpoint, JThread thread)
 {
     _breakpoint = breakpoint;
     _thread = thread;
 }
Beispiel #3
0
 public DjangoStackFrame(JThread thread, string frameName, string filename, int startLine, int endLine, int lineNo, int argCount, int frameId, string sourceFile, int sourceLine)
     : base(thread, frameName, filename, startLine, endLine, lineNo, argCount, frameId, FrameKind.Django)
 {
     _sourceFile = sourceFile;
     _sourceLine = sourceLine;
 }
Beispiel #4
0
 public OutputEventArgs(JThread thread, string output)
 {
     _thread = thread;
     _output = output;
 }
 public ExceptionRaisedEventArgs(JThread thread, JException exception, bool isUnhandled)
 {
     _thread = thread;
     _exception = exception;
     _isUnhandled = isUnhandled;
 }
Beispiel #6
0
 public ThreadEventArgs(JThread thread)
 {
     _thread = thread;
 }
Beispiel #7
0
        private void HandleThreadCreate(Stream stream)
        {
            // new thread
            long threadId = stream.ReadInt64();
            var thread = _threads[threadId] = new JThread(this, threadId, _createdFirstThread);
            _createdFirstThread = true;

            var created = ThreadCreated;
            if (created != null) {
                created(this, new ThreadEventArgs(thread));
            }
        }
Beispiel #8
0
 internal void SwitchThread(JThread thread, bool verbose)
 {
     _threadId = thread.Id;
     _frameId = thread.Frames[0].FrameId;
     SetThreadAndFrameCommand(thread.Id, thread.Frames[0].FrameId, thread.Frames[0].Kind);
     if (verbose) {
         Window.WriteLine(String.Format("Current thread changed to {0}, frame {1}", _threadId, _frameId));
     }
 }