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

Support attaching to processes that can't import madbg #33

Open
kmaork opened this issue Feb 19, 2022 · 0 comments
Open

Support attaching to processes that can't import madbg #33

kmaork opened this issue Feb 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kmaork
Copy link
Owner

kmaork commented Feb 19, 2022

When attaching to a process, madbg injects code that tries to import madbg. If the target process doesn't have madbg in its sys.path, attaching will fail.
The solution is not as simple as adding madbg to the sys.path, as it has dependencies, and some of them might collide with already-loaded versions in the target process.
A potential solution is to try to create a standalone version of madbg, potentially using pex or a similar tool.
Another direction is for madbg to detect the target interpreter, check if madbg is installed, and if not, offer to install it before attaching.
Until any solution is ready, we should make sure that the error is clear and does not affect the target process (see #49).

@kmaork kmaork added the enhancement New feature or request label Feb 19, 2022
@kmaork kmaork changed the title Allow attaching to processes without access to madbg Support attaching to processes that can't import madbg Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant