Merge pull request #1 from int19h/1776

Fix https://github.com/microsoft/ptvsd/issues/1776
This commit is contained in:
Pavel Minaev 2020-01-21 22:24:39 -08:00 committed by GitHub
commit 784f7bc271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 46 deletions

View file

@ -790,8 +790,6 @@ class Session(object):
# FIXME: "exited" event is not properly reported in attach scenarios at the
# moment, so the exit code is only checked if it's present.
if self.start_request.command == "launch":
assert self.exit_code is not None
if self.debuggee is not None and self.exit_code is not None:
assert self.debuggee.returncode == self.exit_code
return self.exit_code