Skip to content

Instantly share code, notes, and snippets.

@cobbweb
Created February 5, 2014 08:07
Show Gist options
  • Save cobbweb/8819127 to your computer and use it in GitHub Desktop.
Save cobbweb/8819127 to your computer and use it in GitHub Desktop.
Sublime Text snippet to insert an ipdb breakpoint with set_trace()
<snippet>
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
<content><![CDATA[
import ipdb; ipdb.set_trace()
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ipdb</tabTrigger>
<description>Set an ipdb breakbpoint with ipdb.set_trace</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.python, keyword.control.import.python</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment