Skip to content

Commit ed9e4a1

Browse files
mklompArendJan
authored andcommitted
Only send linenumbers when in debug mode
1 parent 6500808 commit ed9e4a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

mirte_robot/linetrace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def trace_lines(frame, event, arg):
2626
global do_step
2727
if event != 'line':
2828
return
29-
server.send_message_to_all(str(frame.f_lineno))
29+
# Only return line number to websocket when in step mode
30+
if stepper.value:
31+
server.send_message_to_all(str(frame.f_lineno))
3032
while stepper.value and not do_step.value:
3133
time.sleep(.01)
3234
do_step.value = False

0 commit comments

Comments
 (0)