Debug python with pycharm from an external script
已回答
How can I debug a python program from an external app?
I'm using `guildAI` which is an external utility, that when running `guild run train.py` in console, internally it runs `python train.py` but with wrappers and some utility functions.
Is there a way, to somehow debug (like remote debugging) with pycharm such applications?
I.e tell pycharm to run `guild run train.py` for me with breakpoints? or some other way
请先登录再写评论。
I guess Run | Attach to Process... could be an option, but in case the code is already executed then it won't be able to catch the exceptions that happened before you invoked it.
Another option is to use remote debug server so that the script started with guild run train.py would attach to that server https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html#remote-debug-config