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

node debug exception breakpoint stripe issues #8225

Closed
amiramw opened this issue Jul 22, 2020 · 2 comments · Fixed by #8382
Closed

node debug exception breakpoint stripe issues #8225

amiramw opened this issue Jul 22, 2020 · 2 comments · Fixed by #8382
Labels
debug issues that related to debug functionality help wanted issues meant to be picked up, require help ui/ux issues related to user interface / user experience

Comments

@amiramw
Copy link
Member

amiramw commented Jul 22, 2020

Bug Description:

When stopping with node debugger over an exception breakpoint there is a strip with exception stack trace that cover the program code behind.
I would expect the code to move down (like in vs code) or to make this stripe closable by end user.

Theia:
image

Vscode:
image

See how line 4 and 5 are before and after the stripe so nothing gets lost.

Another issue with the stripe is that it stays even when openning another code editor tabs on the same line...

Steps to Reproduce:

Create a.js script:

var a = 5;
console.log(a);
if (a>2) {
    throw new Error("Error");
}
console.log("End");

Create node launcher:

{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/a.js",
"runtimeExecutable": "node"
}
  • From debug pane set "Uncought Exceptions" breakpoint.
  • Launch "Launch Program"

Now progran stops on exception breakpoint with:

  • Stripe covering the code.
  • When moving to another opened tab the stripe stays.

Additional Information

  • Operating System: Windows, debian
  • Theia Version: master
@vince-fugnitto vince-fugnitto added debug issues that related to debug functionality help wanted issues meant to be picked up, require help ui/ux issues related to user interface / user experience labels Jul 23, 2020
@DoroNahari
Copy link
Contributor

DoroNahari commented Aug 3, 2020

@akosyakov @vince-fugnitto
I looked into this issue and i saw that the reason the overlay is covering the editor is because the heightInLines prop is always set to 0.
https://github.com/eclipse-theia/theia/blob/master/packages/debug/src/browser/editor/debug-exception-widget.tsx#L62
https://github.com/eclipse-theia/theia/blob/master/packages/monaco/src/browser/monaco-editor-zone-widget.ts#L101

I was thinking about calculating the height of the overlay and in accordance calculating the needed heightInLines but the height is available only from componentDidMount React component lifecycle method.
https://github.com/eclipse-theia/theia/blob/master/packages/debug/src/browser/editor/debug-exception-widget.tsx#L73

How do you suggest to proceed?

@akosyakov
Copy link
Member

I looked into this issue and i saw that the reason the overlay is covering the editor is because the heightInLines prop is always set to 0.

Could you elaborate please why is it an issue?

akosyakov added a commit to akosyakov/theia that referenced this issue Aug 14, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit to akosyakov/theia that referenced this issue Aug 14, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit to akosyakov/theia that referenced this issue Aug 17, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
akosyakov added a commit that referenced this issue Aug 17, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
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 help wanted issues meant to be picked up, require help ui/ux issues related to user interface / user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants