Skip to content

[FR]: Attaching debuggers to py_binary is difficult #539

Open
@zfy0701

Description

@zfy0701

What happened?

when use default debugger for py_binary

Image

the command generated is like:

/usr/local/bin/python3.12 -X pycache_prefix=/.../JetBrains/PyCharm2024.3/cpython-cache /Users/fuyaoz/Applications/PyCharm Professional Edition.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 55690 --file /.../server/server 

notice the last parameter /../server/server is a shell instead of python file, the debugger will fail here:

Image

switch back to official rules_python works

Version

Development (host) and target OS/architectures:

Output of bazel --version: 7.4.1

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: MODULE.bazel

Language(s) and/or frameworks involved: pyth

python plugin 1.0.0~ 1.3.2 behaviors similar

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions