-
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
[Quarkus] Can't debug Quarkus application #15114
Comments
@svor does it work if you ad the "console": "internal console" attribute to the launch config? |
@tsmaeder It is not possible to add the |
Could very well be a duplicate of #15117 |
This might be a place to look. redhat-developer/vscode-quarkus@04e7652#diff-0dbbad2f7cd76714b5a5e9cba1b5495fR113 Suspicion: we are missing an environment variable. |
setting milestone 7.5.0 as it's your sprint @tsmaeder |
Shouldn't |
@amisevsk |
@svor Ah apologies, I misunderstood. |
The problem is that the pre-Launch task needs to be run in the dev container instead of the Theia sidecar |
We propose to add configuration to the devfile that allows to execute tasks that are contributed by a VS Code extension in a different container, like: task: "quarkus:dev"-> execute in: "quarkus-dev-machine". |
This needs to be addressed by the platform team. |
By default, I would run the task in the container where the extension is running. |
@tsmaeder tasks:
-
label:
component: The second part is to adapt task runner process on che-theia side. In that part we should analyze workspace configuration and execute tasks in related container |
To me, it sounds too complicated for the user to understand what this is about.
|
@sunix the component that registers the task is exactly not the one that should be executing it, in this concrete case. |
By default yes it should: it is the only container where we are 100% sure that all the system dependencies are met. Quarkus extension would run on Java11 container and it is the only container where we are sure that it would have java and maven. Same if you take a openshift-connector and this extension would like to run
OK let's just don't give the user the ability to choose. Having that say, here is my new proposal:
In concrete case, it's hard to tell if a devfile would have a dedicated runtime container to debug the app. If a devfile author is starting from nothing, he would just add his Quarkus project repository and the Che Quarkus plugin. Just with this devfile he should be able to start the Quarkus app in devmode and debug it. This is what would be possible if we execute the task in the container that is hosting the extension. |
2 Steps:
|
currently on 1.
|
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Any news on this? The problem still persists, it seems. |
@sunix this issue is assigned to you. Are you working on it? |
@l0rd no I am not working on it. I had started to have a look when language team was merged with the plugins team and I moved to a community role. So this is not working because it is using the task provided by the vscode extension. At the moment, to debug quarkus app, we would suggest users to use a task defined in the devfile like this: https://github.com/eclipse-che/che-devfile-registry/blob/main/devfiles/quarkus/devfile.yaml#L101-L117
@ericwill How would we prioritize this ? |
There is a workaround present for this right? I'd say it should be taken as part of sprint 205 (in ~3 weeks from now). |
Thanks for that, @sunix. Actually this is the config that comes with the default Quarkus template on CRW. I actually asked for the current status because I cannot confirm this workaround is working: Created a breakpoint, started Quarkus in dev + debug mode, called a service (getting-started quarkus example with one additional sysout line) - IDE doesn't interrupt... :-| |
@karstengresch which CRW version do you have? Could you please share a link to the devfile |
@karstengresch if you don't have the exact same issue described in this issue, it may be another problem and it may have already been fixed. |
@svor pretty old issue, I suppose debugging quarkus is very well possible now. Can we close? |
Yes, it's an old one, and it's related to the Che-Theia editor and sidecar plugin, both have been deprecated. |
While testing vscode-quarkus extension I detected a problem: if execute Quarkus: Debug Current Quarkus Project command, I see a message:
ERROR There is no debug configuration for undefined
in the browser console and the debugger doesn't execute, but the configuration was generated in launch.json file:
If try to run this configuration from Debug view, I see a message that
Task 'quarkus:dev' terminated with exit code 127
.Probably this problem can be related to add support
integratedTerminal
for debugging eclipse-theia/theia#6103Che remote plugin with vscode-quarkus extension
The text was updated successfully, but these errors were encountered: