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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
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
def
app_set
():
try
:
return
sys
.
modules
[
'neo.lib.threaded_app'
].
app_set
app_set
=
sys
.
modules
[
'neo.lib.threaded_app'
].
app_set
except
KeyError
:
f
=
sys
.
_getframe
(
4
)
try
:
while
f
.
f_code
.
co_name
!=
'run'
or
\
f
.
f_locals
.
get
(
'self'
).
__class__
.
__name__
!=
'Application'
:
f
=
f
.
f_back
return
f
.
f_locals
[
'self'
],
except
AttributeError
:
return
()
pass
else
:
if
app_set
:
return
app_set
f
=
sys
.
_getframe
(
4
)
try
:
while
f
.
f_code
.
co_name
!=
'run'
or
\
f
.
f_locals
.
get
(
'self'
).
__class__
.
__name__
!=
'Application'
:
f
=
f
.
f_back
return
f
.
f_locals
[
'self'
],
except
AttributeError
:
return
()
def
defer
(
task
):
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