-
Notifications
You must be signed in to change notification settings - Fork 222
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
Handle invalid threads in Continue #125
Handle invalid threads in Continue #125
Conversation
Hi @orablu, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
|
||
_pollThread.RunOperation(() => _debuggedProcess.Continue(thread.GetDebuggedThread())); | ||
AD7Thread thread = pThread as AD7Thread; | ||
_pollThread.RunOperation(() => _debuggedProcess.Continue(thread != null ? thread.GetDebuggedThread() : null)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can just be thread?.GetDebuggedThread();
👍 |
Thanks! |
Hi @orablu, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
Handle invalid threads in Continue
AD7Thread thread = (AD7Thread)pThread; | ||
|
||
_pollThread.RunOperation(() => _debuggedProcess.Continue(thread.GetDebuggedThread())); | ||
AD7Thread thread = pThread as AD7Thread; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to add a note here indicating why we are doing this. Something like:
// VS Code currently has a bug where a thread isn't provided in some cases. Work
// around this by allowing null.
VS Code is giving a thread Id of 0 when continuing from async break. Update Continue method to better handle cases where we can't get a debugged thread from the given pThread.