Skip to content

✨ handle debugee connection timeout - #812

Merged
Don Jayamanne (DonJayamanne) merged 4 commits into
microsoft:masterfrom
DonJayamanne:debugeeConnectTimeout
Feb 17, 2018
Merged

Don Jayamanne (DonJayamanne) merged 4 commits into
microsoft:masterfrom
DonJayamanne:debugeeConnectTimeout

Conversation

@DonJayamanne

Copy link
Copy Markdown

Fixes #764

return launcher.LaunchApplicationToDebug(serverInfo);
}
private async waitForDebuggerConnection() {
return new Promise<void>(async (resolve, reject) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd make this configurable

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread src/client/debugger/mainV2.ts Outdated
reject(new Error('Timeout waiting for debugger connection'));
}, DEBUGGER_CONNECT_TIMEOUT);

await this.debugServer!.client;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this throws, do we need to unref still? Maybe finally ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov

codecov Bot commented Feb 16, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #812 into master will decrease coverage by 0.11%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #812      +/-   ##
==========================================
- Coverage   63.43%   63.32%   -0.12%     
==========================================
  Files         258      258              
  Lines       11770    11789      +19     
  Branches     2082     2084       +2     
==========================================
- Hits         7466     7465       -1     
- Misses       4296     4316      +20     
  Partials        8        8
Impacted Files Coverage Δ
src/client/debugger/mainV2.ts 0% <0%> (ø) ⬆️
src/client/linters/baseLinter.ts 85.26% <0%> (-1.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3584d02...16c7ba6. Read the comment docs.

@DonJayamanne
Don Jayamanne (DonJayamanne) merged commit 9aea5f1 into microsoft:master Feb 17, 2018
@DonJayamanne
Don Jayamanne (DonJayamanne) deleted the debugeeConnectTimeout branch February 22, 2018 19:23
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Place a timeout in Debug adapter when waiting for PTVSD to connect to the socket server

2 participants