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] Inline frame decoration is not shown when reached from a different line #15095

Closed
mvtec-richter opened this issue Mar 3, 2025 · 0 comments · Fixed by #15097
Closed
Labels
bug bugs found in the application debug issues that related to debug functionality ui/ux issues related to user interface / user experience

Comments

@mvtec-richter
Copy link
Contributor

Bug Description:

Steps to Reproduce:

  1. Create a javascript file in Theia with following content:
a = 1;
b = 2; throw new Error('test');
  1. Set breakpoint on first line
  2. Enable "Uncaught Exceptions"
  3. Launch debugging with "Run current file (pwa-node)" -> the execution pauses at the first line
  4. Continue execution -> the execution halts with an exception at the throw statement

What happens: There is no inline frame decorator in front of the throw statement
Image

What should happen:
Compare this to:

  1. Restart execution
  2. Step over -> Execution pauses at first command in second line
  3. Continue
    There is a inline frame decorator clearly marking, that the exception occurred at the throw statement.

Image

The logic in DebugEditorModel only takes into account the case, that the second statement in one line was reached right after pausing at another statement at the same line. However, there are other ways to reach nested statements. The logic should be independent of local state (this.topFrameRange).

Additional Information

  • Operating System: Windows/Linux Browser/Electron
  • Theia Version: 1.58/master
@msujew msujew added bug bugs found in the application debug issues that related to debug functionality ui/ux issues related to user interface / user experience labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application debug issues that related to debug functionality ui/ux issues related to user interface / user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants