Skip to content

Show serial does not immediately show either print() output or error traceback #1209

Description

@martinwork

Bug Description

Arising from https://support.microbit.org/helpdesk/tickets/87116 (private)

After pasting in code or loading a hex with a print() statement, then sending it to micro:bit, and clicking Show serial, the serial panel remains blank. If there's a code error, the traceback doesn't show either.

Switching to another browser tab and back fixes it.

Example: serial.zip

from microbit import *
count = 0
while True:
    display.show(Image.HEART)
    print( count)
    count += 1
    sleep(1000)
    display.show(Image.HEART_SMALL)
    sleep(1000)

How To Reproduce

Steps to reproduce the behavior:

  1. Go to https://python.microbit.org/
  2. Paste in the example
  3. Send to micro:bit
  4. Click Show serial
  5. See error

Expected behavior

print() output and traceback appears in the serial window

Environment

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 133

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions