Is it possible to use a debugger (e.g. `pdb`, the ...
# plugins
r
Is it possible to use a debugger (e.g.
pdb
, the debugger in VSCode, or pycharm) with a plug-in?
c
I believe you can run pants under a debugger, yes, which would then include your plugin. Don't know out of head how it is done though..
d
I’m actually curious about how to achieve this. I’m experimenting with PyCharm but can’t figure out how to treat the Pants logic as Python code and step through the plugin.
f
can you not connect with your debugger to the pantsd pid?
(this is what I do with vscode, not sure how pycharm supports that)
otherwise you can find pants' setup directory and create a launch config to run your command without pantsd (
--no-pantsd
) so it doesn't fork and daemonize on startup
h
I do this with PyCharm quite regularly, using remote debugging
☝️ 1
there is info in the pants docsite
r
I believe this works with
run
(
--run-debug-adapter
) and
test
(
--test-debug-adapter
) but what about plugins?