Git Product home page Git Product logo

Comments (6)

 avatar commented on September 28, 2024

Hi

Just checked it on current master (Che) and codenvy.com. Failed to reproduce.

  1. Create a project
  2. Hit Run - Debug
  3. A debugger panel show us and you can then set a breakpoint in code

Were you using master or 4.0?

from che.

skabashnyuk avatar skabashnyuk commented on September 28, 2024

What version of java are you using. Which vendor?

from che.

benoitf avatar benoitf commented on September 28, 2024

If you're using JRE then you've to use JDK which provide tools.jar (providing JDI classes)

from che.

KasperSaaby avatar KasperSaaby commented on September 28, 2024

I'm using the master.

When i run java -version I get

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

I forget to mention that I'm running osx and therefore is using docker-machine. When I run the Spring project, it becomes available at (the docker-machine ip) http://192.168.99.100:50174 and the debugging port is 52178. But in the chrome console I see that it is trying to connect using:

GET http://localhost:8080/che/api/debug-java/1q2w3e/connect?host=localhost&port=52178 500 (Internal Server Error)

Trying to access the url above in the browser, returns "Connection refused", while this url

http://localhost:8080/che/api/debug-java/1q2w3e/connect?host=192.168.99.100&port=52178

returns:

{
   "port": 52178,
   "id": "15",
   "vmVersion": "1.7.0_55",
   "host": "192.168.99.100",
   "vmName": "Java HotSpot(TM) 64-Bit Server VM"
}

So, is this the correct response, and if so, how can I make it use the other host? Or am I way off?

from che.

 avatar commented on September 28, 2024

Yes, it looks like using the actual VM IP should fix the problem. Not sure this is configurable. We'll update you shortly with more details.

from che.

KasperSaaby avatar KasperSaaby commented on September 28, 2024

Okay. Thank you for the quick response.

from che.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.