Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dcd158b

Browse filesBrowse files
authored
Add debug.py
1 parent 213b802 commit dcd158b
Copy full SHA for dcd158b

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎debug.py

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import cmd
2+
import pdb
3+
4+
debugIn = open('/$debug/input', 'r', -1, 'utf-8')
5+
debugOut = open('/$debug/output', 'w', -1, 'utf-8')
6+
7+
cmdline = cmd.Cmd(None, debugIn, debugOut)
8+
cmdline.use_rawinput = False
9+
10+
debugger = pdb.Pdb(cmdline)
11+
12+
debugger.run('import app')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.