Pycharm debugging with extra terminal script and parameters

How to debug the file `train.py` that need to run with following terminal script using Pycharm, e.g.

```
python -m torch.distributed.launch --nproc_per_node=2 train.py --param1 --param2

```

1 comment
Comment actions Permalink

You can add interpreter options as well as script parameters to the run/debug configuration. Have you tried it? 

https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html

0

Please sign in to leave a comment.