Is it possible to debug your python script (pyscript) in the VSCode or PyScharm IDE if your py file is loaded as an url in <py-script ‘src’=./file.py> from your html file ?
A lot of my codes in my IDE are not correctly analyzed cause my imports are more resolved : from pyodide import create_proxy, from js import document, console. A solution could be to install pyodide and js in my local environment but the procedure is not clear for me.
The jhanley strategy seems a good step but not totally functional in VSCode. PyScript: Debugging and Error Management Strategies - John Hanley
What is your strategy guys to debug in your IDEs ?