Integrated debugging with VS Code and WSL

I’m trying to get the integrated debugging to work with VS Code on WSL. I followed the instructions I found here: How to use Streamlit with VS Code — Awesome Streamlit documentation

However if I click on the “Play” Button I get a pop up saying “connect ECONREFUSED”.

If I want to open the app in the browser I get the following error:
ValueError: signal only works in main thread of the main interpreter

I’m using
Windows 11
WSL2 with Ubuntu 20.04.6 LTS
Python 3.10.13
streamlit 1.25.0

Hi @MaxB

The error seems to be debugger issue. Can you see this related post on StackOverflow, there’s a reply with a solution and a link to the source article.

Hope this helps!