SkyLined / BugId

Detect, analyze and uniquely identify crashes in Windows applications
https://bugid.skylined.nl
Other
499 stars 90 forks source link

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

Open dms1lva opened 1 year ago

dms1lva commented 1 year ago

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 commented 1 year ago

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.