question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Theia should not offer to start apps for debugging

See original GitHub issue

Is your enhancement related to a problem? Please describe.

Many default suggested debug configurations in Theia operate similarly to VSCode: they start the specified app and connect debugging to it.

This does not make sense for Eclipse Che. We often start the Theia sidecar container with a limited (512MiB) memory quota, and often it’s impossible to run anything else significant in this container.

Some examples that come to mind are

  1. The netcoredbg plugin for .NET workspaces only seems to work locally, so the application has to start in a sidecar container
  2. The built-in autocompletes for debug configurations include “launch” configs, which call e.g. npm debug in the theia container; these usually get killed before starting up completely

Describe the solution you’d like

At the very least, Theia should not suggest configurations that will not work. Ideally Theia would be able to somehow operate in the main workspace container (which should have enough memory to run the app), but I realize this is likely not possible in a general way.

Describe alternatives you’ve considered

Caveat emptor, I guess?

Additional context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
tolushacommented, Aug 19, 2019

@tsmaeder @amisevsk I’ve just checked [1] and it works fine. It is pretty simple to hide launch configurations from user. At the same time user is able to add them manually.

[1] https://github.com/eclipse/che-theia/blob/ab/filterDebugConf/extensions/eclipse-che-theia-plugin-remote/src/node/debug-configuration-filter.ts

0reactions
che-botcommented, Mar 25, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to start the frontend application - Theia Community
Run a process just after Theia's start. Recieve confirmation that the process is running as it should (from stdout or something like that)....
Read more >
Debugging Node.js applications in Theia - Gitpod
Step 1: Start debugging. Gitpod workspace. In order to start debugging, you should open the debug view first. You can do it via...
Read more >
Chapter 2. Che-Theia IDE basics - Red Hat Customer Portal
In the Debug view, select the configuration and press F5 to debug the application. Or, start the application without debugging by pressing Ctrl+F5....
Read more >
How To Set Up the Eclipse Theia Cloud IDE Platform on ...
You can save debugging configurations in the launch.json file. Debugger View with launch.json open. The central part of the GUI is your editor, ......
Read more >
Jumpstart IDE and Tool Development With Eclipse Theia ...
IDE and tool developers can now quickly and easily evaluate the functionality ... you'll be able to launch a Theia instance as a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found