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

Development Improvement - 2 #126

Open
devilankur18 opened this issue Sep 27, 2015 · 2 comments
Open

Development Improvement - 2 #126

devilankur18 opened this issue Sep 27, 2015 · 2 comments

Comments

@devilankur18
Copy link
Collaborator

Some suggestions

  • Show db queries in console as well. As db queries are not accessible in console, always have to go to the UI to check. Also when set debugger it set via pdb, can see what queries have executed. Also this will give more clarity to do query optimisation.
  • In development mode, make available pdb by default so no need to load it in every file.
@devilankur18 devilankur18 changed the title Development Improvement - Show db queries in console as well. Development Improvement - 2 Sep 27, 2015
@anandology
Copy link
Contributor

  • adding SQLALCHEMY_ECHO = True to settings will print queries to logger.
  • Not sure what you mean by "make available pdb by default". Do you want to through a pdb shell on internal error?

The flask provides a debug page on internal error when in debug mode, that allows inspecting stack and evaluating code in that context etc. Have you tried that?

@devilankur18
Copy link
Collaborator Author

@anandology by pdb I mean pip pdb package for setting debugger on demand, I am more of a command line person, want to do everything in the console itself. Also the debug page only appears on error is it possible to have it by setting debugger or something equivalent ?

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