ARCHIVED: Please use the PyTauri template generator instead.
From project root, enter the following commands:
uv venv --python-preference only-system
.venv\Scripts\activate
uv pip install -e src-tauri\src-python
npm installYou can then run the app with:
npm run tauri dev- Add a new run configuration -> npm
- Command:
run, Scripts:tauri, Arguments:dev - Add a new environment variable named
VIRTUAL_ENV. Its value should be an absolute path pointing to the virtual environment, e.g.C:\Users\...\...\pytauri-vue-starter\.venv.
Requires PyCharm professional
- Set the python interpreter (should be the
python.exein.venv\Scripts). - Open a terminal, make sure the virtual environment is activated.
- Install pydevd for PyCharm.
uv pip install pydevd-pycharm~=243.25659.43
- Add the following code to the top of
__init__.py
import pydevd_pycharm
pydevd_pycharm.settrace('localhost', port=5678, stdoutToServer=True, stderrToServer=True) - Add a new run configuration -> Python Debug Server
- IDE host name:
localhost, Port:5678 - Run the Python Debug Server before starting the npm server.
You can now set breakpoints as you usually would to debug your python code.
