Crandel / tempel-collection

Collection tempel templates
GNU General Public License v3.0
76 stars 27 forks source link

Add set_trace snippet #34

Closed jgarte closed 1 year ago

jgarte commented 1 year ago

This PR removes the previous snippet bound to pu that I added. and introduces a new snippet bound to tr which is short for trace as in set_trace(). I think this is a better use of tempel and allows one to modularize the snippet over pdb, ipdb, and pudb.

For example, with pdb you can do the following:

import pdb; pdb.set_trace()

with ipdb:

import ipdb; ipdb.set_trace()

with pudb

import pudb; pudb.set_trace()