Reputation: 53
I have a shell script file that contains the necessary parameters to run
the Python file. I can only run this script with the green button on the top right
of pycharm, but when I select the debug option, it
quickly goes out of debug mode. This script file contains the python 3 command
.
How can I debug code with this script?
Upvotes: 1
Views: 628
Reputation: 3599
You're asking PyCharm to debug two different programming languages at the same time. Instead, create a Debug configuration for your Python script with all the necessary parameters: https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html
This might take a moment to set up but you will then be able to set breakpoints and debug your Python script.
Upvotes: 2