-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
startDebugging method in vscode still return true even when the build fails #54214
Comments
I have exact the same problem with the API When was starting a Java debug session with the API After clicking "Abort",
But actually
|
duplicate of #53874 |
After #53874 has been fixed it now becomes clear that there is another issue that prevents build errors from bubbling up to the extension API. I've investigated this and created additional debt items #58822 and #58817. It would be great if we could resolve this item for September even if we are not able to fully resolve the debt items. |
Is it enough to verify that a build error reaches the startDebugging API? Or was there a more specific issue with it? |
The startDebugging API was always returning true. To verify:
|
Live share extension on the host side is using the startDebugging method to launch a debug configuration remotely. As part of step it will eventually need to invoke a task to build that could fail, the problem is that the API will not report 'false' value during the invocation.
Extract of the code here:
const result = await vscode.debug.startDebugging(folders ? folders[0] : undefined, debugConfiguration);
if (!result) {
// THIS code almost never get invoked....
throw new Error(
Failed to launch debug configuration:${debugConfiguration.name}
);}
we would like a better mechanism to know what really happen in our launch invocation.
Maybe knowing:
Adding a new richer method may be better...
The text was updated successfully, but these errors were encountered: