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 debug flag #171

Open
rdbliss opened this issue May 15, 2019 · 1 comment
Open

Add debug flag #171

rdbliss opened this issue May 15, 2019 · 1 comment

Comments

@rdbliss
Copy link
Contributor

rdbliss commented May 15, 2019

Radon currently captures most exceptions that occur while doing its work. This makes it a real pain to discover where a programming mistake was made. (See #170 for an example; there's no debug information.)

Could we add a flag or something to avoid suppressing exceptions? Or perhaps just avoid suppressing them altogether?

@rubik
Copy link
Owner

rubik commented May 17, 2019

@rwbogl Yes, that would be a good idea. It's not super simple because the error is caught in radon/__init__.py and there is no CLI information. A hack would be to check if "-d" or "--debug" is in sys.argv, and if so re-raise the exception. That's not a very good solution though.

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

No branches or pull requests

2 participants