【问题标题】:How to debug python programs with shell scripts in PyCharm?如何在 PyCharm 中使用 shell 脚本调试 python 程序?
【发布时间】: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 程序?

标签: python pycharm


【解决方案1】:

我也想知道答案!

【讨论】:

    猜你喜欢
    • 2020-06-29
    • 2012-05-01
    • 1970-01-01
    • 2020-07-20
    • 1970-01-01
    • 2011-06-30
    • 2016-05-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多