Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Info on how to debug Eclipse Che

Thanks Jonah for your time.

I was able to resolve the above issue by including the source from "target/generated-sources/dto" in the Project Properties->Java Build Path->Source
By default all files were excluded.

Now i run the below command-
docker run -ti -v /var/run/docker.sock:/var/run/docker.sock -v /home/kvbhat/CheDebug:/data -v /home/kvbhat/git/IDE/che:/repo eclipse/che:latest start --skip:scripts --debug

to load che with my local assembly. But when i launch Eclipse Che and create/run a workspace I'm not able to see wsagent.debug server.
The following servers are running when i create and run a new php workspace with language server-


80/tcp 80 http URL: http://107.110.2.153:32886
8000/tcp 8000 http URL: http://107.110.2.153:32882
8080/tcp 8080 http URL: http://107.110.2.153:32881
exec-agent/http 80 http URL: http://107.110.2.153:32883/process
exec-agent/ws - ws URL: ws://107.110.2.153:32883/connect
terminal - ws URL: ws://107.110.2.153:32884/pty
wsagent/http  80  http  URL: http://107.110.2.153:32885/api
wsagent/ws  - ws  URL: ws://107.110.2.153:32885/wsagent



Could you please share your inputs if I'm doing something wrong?

Thanks
Karthik Bhat

On Mon, Oct 8, 2018 at 4:09 PM Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Karthik,

You look like you have done the right thing, but m2e (Maven for Eclipse) has not added a dependent project to the classpath properly. You could try manually importing the maven package with  org.eclipse.che.api.languageserver.shared.dto.DtoClientImpls  in it? 

HTH,
Jonah 
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On Mon, 8 Oct 2018 at 11:01, Karthik Bhat <blitz.opensource@xxxxxxxxx> wrote:
Thanks Jonah for the input.
But I'm facing another problem in building che-plugin-languageserver-ide.
Build is successful when i use mvn clean install. But when i import the project into Eclipse. I get the below error-

The import org.eclipse.che.api.languageserver.shared.dto.DtoClientImpls cannot be resolved
ApplyWorkspaceEditAction.java
/che-plugin-languageserver-ide/src/main/java/org/eclipse/che/plugin/languageserver/ide/editor/quickassist
line 22 Java Problem

I followed these steps-
1) run mvn clean install -Dskip-enforce -DskipTests -Dskip-validate-sources -Dfindbugs.skip -DskipIntegrationTests=true -Dmdep.analyze.skip=true at Che root directory.
2) Import mvn project che-plugin-languageserver-ide into eclipse.
3) Run Build All.

Could you please let me know if I'm doing something wrong?

Thanks and Regards
Karthik Bhat

On Fri, Oct 5, 2018 at 3:31 PM Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Karthik,

The info you want is part of the Wiki, from your description it sounds like you want specifically https://github.com/eclipse/che/wiki/Development-Workflow#debugging-workspace-agent

i.e. find the port number the debug port is listening on and attach a Java application using the "Remote Java Application" launch configuration type.

HTH,
Jonah

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On Fri, 5 Oct 2018 at 10:56, Karthik Bhat <blitz.opensource@xxxxxxxxx> wrote:
Hi All,
I'm trying to debug Eclipse Che language server plugin (https://github.com/eclipse/che/tree/master/plugins/plugin-languageserver) but I'm unable to find any documentation on how to debug Eclipse Che.

Could you please provide a guide on how to setup debugging environment for Eclispe Che?
I'm currently using Eclipse to build Eclipse Che as mentioned at https://github.com/eclipse/che/wiki/Development-Workflow

Thanks and Regards
Karthik Bhat
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev

Back to the top