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
Vincent Pelletier
neoppod
Commits
e3414b6f
Commit
e3414b6f
authored
May 28, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug: fix 'app' when using pdb in stress tool
parent
c611c48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
neo/debug.py
neo/debug.py
+13
-9
No files found.
neo/debug.py
View file @
e3414b6f
...
@@ -13,16 +13,20 @@ import sys
...
@@ -13,16 +13,20 @@ import sys
def
app_set
():
def
app_set
():
try
:
try
:
return
sys
.
modules
[
'neo.lib.threaded_app'
].
app_set
app_set
=
sys
.
modules
[
'neo.lib.threaded_app'
].
app_set
except
KeyError
:
except
KeyError
:
f
=
sys
.
_getframe
(
4
)
pass
try
:
else
:
while
f
.
f_code
.
co_name
!=
'run'
or
\
if
app_set
:
f
.
f_locals
.
get
(
'self'
).
__class__
.
__name__
!=
'Application'
:
return
app_set
f
=
f
.
f_back
f
=
sys
.
_getframe
(
4
)
return
f
.
f_locals
[
'self'
],
try
:
except
AttributeError
:
while
f
.
f_code
.
co_name
!=
'run'
or
\
return
()
f
.
f_locals
.
get
(
'self'
).
__class__
.
__name__
!=
'Application'
:
f
=
f
.
f_back
return
f
.
f_locals
[
'self'
],
except
AttributeError
:
return
()
def
defer
(
task
):
def
defer
(
task
):
def
wrapper
():
def
wrapper
():
...
...
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