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

redirect output not work after reopen idb when ipyida also installed #2

Closed
Cirn09 opened this issue Jul 27, 2022 · 0 comments
Closed

Comments

@Cirn09
Copy link
Owner

Cirn09 commented Jul 27, 2022

WHAT

Open an idb, debug, then close, final reopen.
Now idavscode's redirect output would not work (no output in vscode "DEBUG CONSOLE")

WHY

some plugin ( like ipyida ) hooked Python's stdout (stderr).

when close idb, plugin will unload, ipyida will remove hook; And plugin will reload when idb reopen, ipyida will re-install hook.

And debugpy also need hook stdout to achieve redirect output.
Currently we have no way to stop debugpy, so I set idavscode will not unload when idb closed.
so:

# first open idb
debugpy.stdout -> ipyida.stdout -> IDAPython.stdout

# after reopen
debugpy.stdout -> old ipyida.stdout
                  new ipyida.stdout -> IDAPython.stdout

How to fix

wait for debugpy's stop api: microsoft/debugpy#870
or set ipyida also not unload when idb close.

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