Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, exiting with a non-zero value results in an error in PyCharm's console when attaching to a process (see below), this fixes this issue.
...
File ".../add_code_to_python_process.py", line 534, in run_python_code_mac
subprocess.check_call(' '.join(cmd), shell=True, env=env)
File ".../python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'lldb --no-lldbinit --script-language Python -o ... -o 'script import os; os._exit(1)'' returned non-zero exit status 1.
(tested on macOS with PyCharm Build #PY-241.14494.241)