Test case:
import sys, os
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
sys.path.insert(0, root_dir)
import backtracepython as bt
host, port = sys.argv[1:]
endpoint = "http://{}:{}".format(host, port)
bt.initialize(
endpoint=endpoint,
token="FakeToken",
debug_backtrace=True,
context_line_count=2,
)
import threading
import time
def thread_one():
while True:
time.sleep(0.1)
def thread_two():
while True:
time.sleep(0.2)
threading.Thread(target=thread_one).start()
threading.Thread(target=thread_one).start()
threading.Thread(target=thread_two).start()
this = broken
The child trying to read stdin never gets input, even though we write it over the pipe.
Test case:
The child trying to read stdin never gets input, even though we write it over the pipe.