Skip to content
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

debug: fix watch expression errors #11953

Merged
merged 1 commit into from
Dec 6, 2022
Merged

debug: fix watch expression errors #11953

merged 1 commit into from
Dec 6, 2022

Conversation

vince-fugnitto
Copy link
Member

What it does

Closes #11950.

The pull-request updates handling for watch expressions to respect the error message rather than hardcode one.
The changes also align the styling with VS Code.

watch-fix

How to test

  1. start the application with theia as a workspace
  2. open a *.spec.ts file
  3. set a breakpoint in the file and trigger the run mocha tests debug configuration
  4. attempt to create watch expressions with variables that are known and unknown
  5. known expressions should work
  6. unknown expressions should display a proper error message

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added the debug issues that related to debug functionality label Dec 5, 2022
@vince-fugnitto vince-fugnitto self-assigned this Dec 5, 2022
@msujew msujew self-requested a review December 5, 2022 14:51
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Alright, I can confirm that this change fixes the issue at hand 👍

The commit updates `watch` expressions so we respect the proper error
from the DAP and not hardcode to a value we define. The changes also
update the styling to align with VS Code.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug issues that related to debug functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It seems Theia can't show debug evaluate errors, because of incorrect DAP error handling
2 participants