Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Debugger snippets #19

Closed
wants to merge 3 commits into from

2 participants

@acdha
  • stdlib pdb and code.interact
  • ipython shell
  • bpython bpdb extended debugger
acdha added some commits
@acdha acdha Snippet: bpdb debugger
bpdb is like pdb but modern
d901bef
@acdha acdha Snippet: ipython
Now "ipy<tab>" will insert the code to invoke ipython in the local context
bb98a73
@acdha acdha Snippet: pdb & interact 2d3d621
@infininight
Owner

Other than the ipython snippet I'm not sure about the coding style of these snippets. While I understand that the module must be imported if seems this is typically done in a different place, usually at the top of the file, and at least not on the same line as it's use.

@infininight
Owner

Closing due to lack of follow-up.

@infininight infininight closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 22, 2013
  1. @acdha

    Snippet: bpdb debugger

    acdha authored
    bpdb is like pdb but modern
  2. @acdha

    Snippet: ipython

    acdha authored
    Now "ipy<tab>" will insert the code to invoke ipython in the local context
  3. @acdha

    Snippet: pdb & interact

    acdha authored
This page is out of date. Refresh to see the latest.
View
16 Snippets/bpdb.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>import bpdb; bpdb.set_trace()</string>
+ <key>name</key>
+ <string>bpdb</string>
+ <key>scope</key>
+ <string>source.python</string>
+ <key>tabTrigger</key>
+ <string>bpdb</string>
+ <key>uuid</key>
+ <string>F9D4CC08-FE65-42F5-8B8E-17F255EA3FC1</string>
+</dict>
+</plist>
View
16 Snippets/interact.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>import code; code.interact(local=locals())</string>
+ <key>name</key>
+ <string>interact</string>
+ <key>scope</key>
+ <string>source.python</string>
+ <key>tabTrigger</key>
+ <string>interact</string>
+ <key>uuid</key>
+ <string>78CDBA56-81F0-4A8B-941D-F20B1562C6BA</string>
+</dict>
+</plist>
View
17 Snippets/ipython.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>from IPython.Shell import IPShellEmbed
+ipshell = IPShellEmbed()(local_ns=locals(), global_ns=globals())</string>
+ <key>name</key>
+ <string>ipy</string>
+ <key>scope</key>
+ <string>source.python</string>
+ <key>tabTrigger</key>
+ <string>ipy</string>
+ <key>uuid</key>
+ <string>14A77A30-2E2F-4818-AD24-00EA37E18475</string>
+</dict>
+</plist>
View
16 Snippets/pdb.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>import pdb; pdb.set_trace()</string>
+ <key>name</key>
+ <string>pdb</string>
+ <key>scope</key>
+ <string>source.python</string>
+ <key>tabTrigger</key>
+ <string>pdb</string>
+ <key>uuid</key>
+ <string>C191029C-84B5-47BE-8688-EE9DF64054E8</string>
+</dict>
+</plist>
Something went wrong with that request. Please try again.