che: Theia should not offer to start apps for debugging

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (18 by maintainers)

Most upvoted comments

@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