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

Question: Why does a process need to be suspended before bugid can attach to it? #118

Open
dms1lva opened this issue Jul 12, 2023 · 1 comment

Comments

@dms1lva
Copy link
Contributor

dms1lva commented Jul 12, 2023

As written in the documentation, I tried to suspend the process using psutil before asking bugid to attach but that does not seem to work.
It seems to work fine without suspending the process.
Should I be careful of any issues if I don't suspend the process first?

@SkyLined
Copy link
Owner

Good question!
I am actually not sure why I wrote "must". I assume I believed that because BugId tries to resume the process, it must be suspended (or an error of some sort will happen). But if it works, then it's probably fine to attach to a running process without suspending it first. I expect windows will just ignore BugId asking it to resume the process of it is not suspended.

I'll leave this bug open to investigate and update the doc if I can confirm this is true. I'm not near a windows machine until next month and I have another bug open that has higher priority, so this may take a while.

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

2 participants