I’m trying to debug using pycharm but im tackling ...
# general
m
I’m trying to debug using pycharm but im tackling a problem.. Because of the sandbox feature, pycharm doesn’t know where the files are and I can’t do manually path mappings because the folder name is some generated guid. I tried to disable the sandbox(run_goal_use_sandbox=False) which worked but I feel like it’s not the right solution and another larger problem is that I can’t disable the sandbox when running tests. I would love some help please 🙏
h
m
@happy-kitchen-89482 It doesn’t help about how can I debug in sandbox?
h
It should let you attach pycharm to a remote debugging server running in the venv of your test, isn’t that what you want?
You can also run with
--keep-sandboxes=always
, and poke around directly in the sandbox
(all the sandbox locations are logged to the console, find the one that matters, typically the
pytest
invocation one, and you can
cd
into it and run whatever you like in there)