Debugger Presets #17

Open
opened 2023-12-04 14:17:06 +00:00 by phryk · 0 comments
Owner

Create a generic function to invoke a debugger.
Allow setting a debugger through config.
Try pudb by default, fall back to pdb.

Call this function at important junctions, enabled by keyword through config.

i.e. something like:

[debug]
templating = True
database = False

Figure out where we actually want this, (probably incomplete) list:

  • uncaught exceptions
  • error pages
  • template compilation
  • template candidate resolution
  • rendering main template
  • content .view
  • database statement generation
  • database table creation
  • database statement execution

Template rendering would also be nice, but probably requires extra work due to AST-manipulation/compilation logic.

Create a generic function to invoke a debugger. Allow setting a debugger through config. Try pudb by default, fall back to pdb. Call this function at important junctions, enabled by keyword through config. i.e. something like: ``` [debug] templating = True database = False ``` Figure out where we actually want this, (probably incomplete) list: * uncaught exceptions * error pages * template compilation * template candidate resolution * rendering `main` template * content `.view` * database statement generation * database table creation * database statement execution Template *rendering* would also be nice, but probably requires extra work due to AST-manipulation/compilation logic.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: phryk/ooze#17
No description provided.