public
Description: Useful commands for interacting with IPython from TextMate
Homepage:
Clone URL: git://github.com/mattfoster/ipython-tmbundle.git
ipython-tmbundle / Commands / Enter debugger.tmCommand
100644 33 lines (29 sloc) 0.832 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#! /usr/bin/env python
import sys, os
 
sys.path.append(os.environ['TM_BUNDLE_SUPPORT'] + '/lib')
from ipythonMate import *
 
try:
cmd=os.environ['TM_IPYTHON']
except KeyError:
cmd='ipython'
 
run_in_terminal('%debug', command=cmd)
notify_with_growl("IPython Script", 'Entered debugger (pdb)')</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>Enter debugger</string>
<key>output</key>
<string>discard</string>
<key>scope</key>
<string>source.python</string>
<key>uuid</key>
<string>2C4EB353-B2F2-4CA5-A10A-7E9F1349FD61</string>
</dict>
</plist>