# Debug Pyscript in an IDE

**URL:** <https://forum.anaconda.com/t/debug-pyscript-in-an-ide/50522>\
**Category:** PyScript\
**Created:** [February 10, 2023, 10:49am UTC](https://forum.anaconda.com/t/debug-pyscript-in-an-ide/50522 "2023-02-10T10:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frchalaoux](https://avatars.discourse-cdn.com/v4/letter/f/80bc00/32.png) [@frchalaoux](https://forum.anaconda.com/u/frchalaoux)\
**Post date:** [February 10, 2023, 10:49am UTC](https://forum.anaconda.com/t/debug-pyscript-in-an-ide/50522/1 "2023-02-10T10:49:38Z")

</div>

Hi All,

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](https://www.jhanley.com/blog/pyscript-debugging-and-error-management-strategies/)

What is your strategy guys to debug in your IDEs ?

Cheers,

FR
