Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify listen variables through the environment #14

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

MatthewWilkes
Copy link
Contributor

Python 3.8 has a breakpoint() built in to start the specified debugger. This change allows you to specify host and port details in the environment, so software that uses the breakpoint() debugging convention can be run with remote-pdb without needing specific code changes and without having access to stdout.

This helps with simplifying the learning journey for users on 3.8 when debugging complex multi-threaded or multi-process systems.

As with the other PR, please do ask if there's anything you want me to change or do differently.

Matt

README.rst Outdated

PYTHONBREAKPOINT=remote_pdb.set_trace REMOTE_PDB_HOST=0.0.0.0 REMOTE_PDB_PORT=10000 python script.py

Omitting either of these environment variables will use the default logic from above.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. I'd reword this somehow, it doesn't sound right. Perhaps just state what the defaults are?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reworked the whole section to try and be more explicit and be closer to the voice you used in the other parts of the readme. I'd originally tried to make this a light touch section to avoid restating things, but your idea of being explicit works for me.

use in Python3.7's breakpoint() more user friendly.
@MatthewWilkes MatthewWilkes force-pushed the environment_variables branch from c882426 to 1ded754 Compare March 5, 2019 16:52
@ionelmc
Copy link
Owner

ionelmc commented Mar 5, 2019

Very good. Thanks.

@ionelmc ionelmc merged commit b5a7956 into ionelmc:master Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants