Replies: 1 comment 6 replies
-
|
I think the best thing to do would be to document/make public the --adapter-access-token. Not sure why it isn't documented |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Part of enabling support for debugging Ansible modules written in Python through debugpy we've come across a question around what is considered public API and safe to use officially.
We use two things which aren't officially documented as public APIs:
--adapter-access-tokenwhen launching a sub process explicitly throughpython -m debugpy ...(debugpy.connect()does have it documented as a kwarg)An alternative approach is to parse the
sys.argvourselves to store the value but--adapter-access-tokenisn't officially documented and it is a bit more complicated to do so than just accessing the CLI args that have been parsed into options fromdebugpyitself.Is there a recommended approach you would have here, if not can we look at making a public API so we aren't relying on implementation details here? Just for some background information our current approach to adding support for debugpy is with ansible/ansible#85476.
Beta Was this translation helpful? Give feedback.
All reactions