def command_set_lineno(self):
tid = read_int(self.conn)
fid = read_int(self.conn)
lineno = read_int(self.conn)
try:
THREADS_LOCK.acquire()
THREADS[tid].cur_frame.f_lineno = lineno
newline = THREADS[tid].cur_frame.f_lineno
THREADS_LOCK.release()
with _SendLockCtx:
write_bytes(self.conn, SETL)
write_int(self.conn, 1)
write_int(self.conn, tid)
write_int(self.conn, newline)
except:
with _SendLockCtx:
write_bytes(self.conn, SETL)
write_int(self.conn, 0)
write_int(self.conn, tid)
write_int(self.conn, 0)
评论列表
文章目录