wsagent-debug unavailable on 6.14.0?
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?
Hello, FYI https://github.com/eclipse/che-docs/blob/97a662cfff47401db40176ba220a4394f18c9be5/src/main/pages/developer-guide/workspace-agent.adoc
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.
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 https://github.com/eclipse/che-docs/blob/master/src/main/images/wsagent/wsagent-debug-env.png
@sleshchenko thanks a lot!
Is it possible to add this by default temporarily on my custom stack?
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 I mean, during the development phase I would like to have it always enabled every time that I instantiate my stack.
@mstavares I think the only way for you is creating two similar stacks - one with enabled debug and another with disabled debug.
@sleshchenko Maybe I'm doing something wrong, but after create those environment variables my workspace stucks at starting state.
https://ibb.co/mbS8VL
@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.
It's already working, thanks a lot!
Feel free to reopen it or create a new issue if you still have any issues/questions.