che icon indicating copy to clipboard operation
che copied to clipboard

wsagent-debug unavailable on 6.14.0?

Open mstavares opened this issue 8 years ago • 13 comments

Description

Hi,

I'm developing some modules on wsagent on my eclipse che fork. Yesterday I have updated my fork to 6.14.0 snapshot and I realized that the service which allows me to debug wsagent is not there anymore.

Here on 6.10.0: https://ibb.co/dRzYfL

Then on 6.14.0 is missing: https://ibb.co/d24MZf

Are you able to help me please?

mstavares avatar Nov 14 '18 09:11 mstavares

Hello, FYI https://github.com/eclipse/che-docs/blob/97a662cfff47401db40176ba220a4394f18c9be5/src/main/pages/developer-guide/workspace-agent.adoc

benoitf avatar Nov 14 '18 09:11 benoitf

Debugging of workspace agent debug is not the thing that should be enabled by default since there is no any authentication, it's why we disabled it in 6.14.0. @benoitf Shared Doc with instruction how to enable it. This doc will be available on https://www.eclipse.org/che/docs/ after next updating of the site, I hope soon.

sleshchenko avatar Nov 14 '18 09:11 sleshchenko

Hi @benoitf

Should I enable it here? wsagent/agent/src/main/resources/installers/1.0.1/org.eclipse.che.ws-agent.script.sh:279:DEFAULT_WSAGENT_DEBUG=false

mstavares avatar Nov 14 '18 09:11 mstavares

@mstavares https://github.com/eclipse/che-docs/blob/master/src/main/images/wsagent/wsagent-debug-env.png

sleshchenko avatar Nov 14 '18 09:11 sleshchenko

@sleshchenko thanks a lot!

mstavares avatar Nov 14 '18 09:11 mstavares

Is it possible to add this by default temporarily on my custom stack?

mstavares avatar Nov 14 '18 10:11 mstavares

Is it possible to add this by default temporarily on my custom stack?

@mstavares Yes, it is possible to configure stack to enable wsagent debug by default. Just add needed env vars to a machine configuration. Not sure that I understand what you do mean by temporarily here. You can configure your stack with Debug enabled by default, and then you can disable it. There is no functionality out of the box to temporarily configure your stack.

sleshchenko avatar Nov 14 '18 10:11 sleshchenko

@sleshchenko I mean, during the development phase I would like to have it always enabled every time that I instantiate my stack.

mstavares avatar Nov 14 '18 10:11 mstavares

@mstavares I think the only way for you is creating two similar stacks - one with enabled debug and another with disabled debug.

sleshchenko avatar Nov 14 '18 10:11 sleshchenko

@sleshchenko Maybe I'm doing something wrong, but after create those environment variables my workspace stucks at starting state.

https://ibb.co/mbS8VL

mstavares avatar Nov 14 '18 10:11 mstavares

@mstavares Try to remove WSAGENT_DEBUG_SUSPEND or set it to n. Docs shows just an example how to set env vars. Workspace stucks at starting state because wsagent waits until someone connects to debug port.

sleshchenko avatar Nov 14 '18 10:11 sleshchenko

It's already working, thanks a lot!

mstavares avatar Nov 14 '18 11:11 mstavares

Feel free to reopen it or create a new issue if you still have any issues/questions.

sleshchenko avatar Nov 14 '18 11:11 sleshchenko