Is there a recipe for using pycharm to debug throu...
# development
l
Is there a recipe for using pycharm to debug through pants's own code? I've seen the recipes to install pydevd-pycharm as an extra req for pytests when using pants on other repos and the developer docs have instructions to debug pants with vscode/debug-adapter with
PANTS_DEBUG=1
. Been getting along with the vscode version to look through pants internal code, but would love to be able to switch back to pycharm. I'll keep digging for how I may be able to add the requirement into the interpreter that is running the pants src. I'm doing things like
example-python$ PANTS_SOURCE=<path_to_pants_clone> pants test ...
đŸ¤Ļ ok, looks to be as simple as adding it to 3rdparty/requirements.txt. sorry for the bother. if it works, will make an adjustment for the docs.
b
I wish pycharm would just implement the debug adapter.
They use the same basic library that powers it 😞
â˜šī¸ 1
l
https://github.com/pantsbuild/pants/pull/19787 is an addition to the docs for how to debug pants internals with pycharm. It seems to work as expected.
👍 1