Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
neoppod
Commits
52ed5aab
Commit
52ed5aab
authored
Jul 28, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a neo/debug.py example to display tracebacks of threads
parent
f4e656f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
neo/debug.py
neo/debug.py
+10
-1
No files found.
neo/debug.py
View file @
52ed5aab
...
@@ -9,7 +9,8 @@ The prompt is accessible through network in case that the process is daemonized:
...
@@ -9,7 +9,8 @@ The prompt is accessible through network in case that the process is daemonized:
<neo.master.app.Application object at 0x1fc9750>
<neo.master.app.Application object at 0x1fc9750>
"""
"""
if
1
:
IF
=
'pdb'
if
IF
==
'pdb'
:
import
socket
,
sys
,
threading
import
socket
,
sys
,
threading
from
neo.lib.debug
import
getPdb
from
neo.lib.debug
import
getPdb
#from pdb import Pdb as getPdb
#from pdb import Pdb as getPdb
...
@@ -81,3 +82,11 @@ if 1:
...
@@ -81,3 +82,11 @@ if 1:
finally
:
finally
:
del
f
del
f
threading
.
Thread
(
target
=
pdb
,
args
=
(
app_set
,)).
start
()
threading
.
Thread
(
target
=
pdb
,
args
=
(
app_set
,)).
start
()
elif
IF
==
'frames'
:
import
sys
,
traceback
write
=
sys
.
stderr
.
write
for
thread_id
,
frame
in
sys
.
_current_frames
().
iteritems
():
write
(
"Thread %s:
\
n
"
%
thread_id
)
traceback
.
print_stack
(
frame
)
write
(
"End of dump
\
n
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment