Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Continue execution until the current function returns" debugger button gets stuck in asyncio internals #785

Open
mujina93 opened this issue Dec 19, 2019 · 0 comments

Comments

@mujina93
Copy link

As a developer using python 3.7, I want the "Continue execution until the current function returns" button to eventually end the debugging session so that I can debug

Premise: I am on python 3.7.3. Tested the code both with a normal kernel and with the pixiedust kernel (the debugger should work even outside of the pixiedust-spark kernel).

When running the debugger on the simple example

%%pixie_debugger
import random
def find_max (values):
    max = 0
    for val in values:
        if val > max:
            max = val
    return max
find_max(random.sample(range(100), 10))

if I click "Continue execution until the current function returns" until the end of the snippet, the debugger gets to

finally:
               # Reset our crash handler in place
                sys.excepthook = old_excepthook

in the coroutine

@asyncio.coroutine
   def run_code(self, code_obj, result=None, *, async_=False)

then it goes through all the internals of asyncio and finally it hangs at

finally:
            self._restore_input()

in the coroutine

@gen.coroutine
    def do_execute(self, code, silent, store_history=True,
                   user_expressions=None, allow_stdin=False)

(from this moment onwards the button "Continue execution until the current function returns" is idempotently leaving me on the same line).

None of the debugger buttons can get me unstack from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant