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

Improve debug mode #9

Open
osvenskan opened this issue Sep 6, 2018 · 0 comments
Open

Improve debug mode #9

osvenskan opened this issue Sep 6, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@osvenskan
Copy link
Owner

Right now, debug mode (enabling DPRINTF statements) requires a recompile to enable/disable. It'd be nicer if that was available all the time but switched off by default. Ideas for turning on debug statements at runtime include --

  • Different classes (e.g. SemaphoreDebug)
  • Flag passed at init (e.g. sem = Semaphore(..., debug=True))
  • Context manager (e.g. with posix_ipc.DebugMode:)
  • Global on/off flag (e.g. posix_ipc.debug = True)

I also want to consider proper logging instead of always writing to stdout.

Suggestions are welcome. :-)

@osvenskan osvenskan added the enhancement New feature or request label Sep 6, 2018
@osvenskan osvenskan self-assigned this Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant