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

Hi Vitalii, Jonah,
Thanks for your time and reply.
I was able to successfully debug on Chrome after following your instructions.  I will try to debug the same in eclipse if possible.

Wanted few more inputs from the community.  I'm very new to Eclipse Che and Cloud IDE concepts so some of them may seems silly.

1) What is the plan for integrating Theia in Eclipse Che? If i understand correctly Eclipse Che has 3 components-  Dashboard, Workspace Agent and IDE. Is Theia supposed to replace the complete IDE(i.e. Orion to Theia)
2)  I wanted to build a custom Stack in Eclipse Che and IDE extensions(customized IDE). Should i focus on Theia IDE extension instead of extending current IDE present in Eclipse Che?

Thanks once again for your valuable time.

Thanks and Regards
Karthik Bhat











On Mon, Oct 8, 2018 at 7:18 PM Vitalii Parfonov <vparfono@xxxxxxxxxx> wrote:
Hi, Karthik.
Looks like you try to debug client side code for this you need to start GWT SuperDev Mode.
For this you need to:
  1. build all Che from source here helpful command for fast build: 'mvn clean install -DskipTests -Dgwt.compiler.localWorkers=2 -T 1C -Dskip-validate-sources -Dfindbugs.skip=true'
  2. start your Che assembly.
  3. start GWT SuperDev Mode this is command for it : 'mvn gwt:codeserver -pl :che-ide-gwt-app -am -Dmaven.main.skip -Dmaven.resources.skip -Dche.dto.skip -Dskip-enforce -Dskip-validate-sources'
After successful start you will get URL, follow instruction. 
Now for debug client side code you can use Chrome Developer console.

Hope it help you.



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

Sorry, I don't know why the debug agent isn't showing up for you. I'll try to run it up locally at some point this week to see if something has changed since the last time I tried doing this debugging. As I (and others) have been changing focus to the Theia based IDE I haven't been doing any Che IDE development for a while.

Sorry I couldn't be of more help, maybe someone else on the list can be?
Jonah

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


On Mon, 8 Oct 2018 at 11:54, Karthik Bhat <blitz.opensource@xxxxxxxxx> wrote:
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
_______________________________________________
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


--
Vitalii Parfonov

Che IDE Team Lead
_______________________________________________
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