【发布时间】:2022-09-25 17:49:14
【问题描述】:
如何在 PyCharm 中使用 shell 脚本调试 python 程序?
我有一个 shell 脚本,它启动一个 PyCharm 程序,如下 test.sh:
python scripts/recognition.py @scripts/options/with_bert.opt
然后在命令行我运行:
sh test.sh
我什至在recognition.py 的第一行\'import\' 中设置了调试器断点,当它在PyCharm 中运行时它仍然不会停止。
在 shell 脚本中启动 python 时,有没有办法在 PyCharm 中调试它?
-
你通常如何在 Pycharm 中运行 python 程序?
-
单击\'test.sh\',然后右键单击然后运行\'Debug test.sh\',但它不会在断点处停止。
-
我不知道你可以在 Pycharm 中运行 shell 脚本。无论如何,python程序呢?你如何运行它们?
-
我只是运行:python scripts/recognition.py @scripts/options/with_bert.opt
-
Pycharm 内部呢?如何在 Pycharm 中运行 python 程序?