-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"Apache Camel" devfile debug task does not work #14003
Comments
it is the only stack which seems to provide a debug task.
but unfortunately, it started to show a few thread sand then failed with:
given that we can use the CodeLens on Application class, I would say that this command should be removed for now. if we are able to auto-connect the debugger, it will become interesting to have it |
- cannot make it working even when attaching manually the Java debugger afterwise - Debug is available through CodeLens on the Application Java class - no other devfiles are providing this kind of debug task Signed-off-by: Aurélien Pupier <apupier@redhat.com>
The issue is one of naming, I believe. The task should be named something like "run the services with debugging enabled". The task works, but it only starts the server listening on a JDPA port; you still need to configure the theia debug task, and I don't know if there's a devfile-based way to do that. An additional issue is that when you start this task, Theia prompts you that "a new service is listening on port 5005". If you choose to expose this port, you won't be able to connect your debugger. |
@amisevsk : Excellent suggestion to rename the task. I think we should to that as an immediate quick-fix. The user will still have to add the debug configuration for now. until we look at adding the debug config in the devfile indeed. |
@apupier : Can you help on this issue? |
I just catched the PR! Thanks @apupier ! |
- cannot make it working even when attaching manually the Java debugger afterwise - Debug is available through CodeLens on the Application Java class - no other devfiles are providing this kind of debug task Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Closing as current apache camel devfile contains a working setup for debugging (start remote application + connect remote debugger). There are some improvements still possible, as listed in eclipse-che/che-devfile-registry#66 (comment) |
- cannot make it working even when attaching manually the Java debugger afterwise - Debug is available through CodeLens on the Application Java class - no other devfiles are providing this kind of debug task Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Describe the bug
Task "run and debug the services" from Apache Camel devfile does not work
Che version
Steps to reproduce
Expected behavior
breakpoint hit out of the box
Runtime
minikube version
andkubectl version
)Screenshots
Installation method
Environment
Additional context
The text was updated successfully, but these errors were encountered: