Page 1 of 1

unable to debug demo site using eclipse

Posted: Mon Mar 24, 2014 12:32 pm
by anoop
Am new to the broadleaf app.Created broadleaf demo project in my eclipse(using http://docs.broadleafcommerce.org/core/ ... ng-started) and its working fine.But am unable to debug the application.Below steps am follwing for starting the app in debug mode.
Site --> right click on jetty Demo --> Debug As --> Ant Build
If there is any other details I can provide which would be helpful, please let me know.Any help would be very much appreciated.Thanks

Re: unable to debug demo site using eclipse

Posted: Mon Mar 24, 2014 2:56 pm
by phillipuniverse
No, you'll need to debug it as a remote Java application. So you can start up the application using ant and then you'll see this in your console:

Code: Select all

[artifact:mvn] Listening for transport dt_socket at address: 8000


In Eclipse, you can then go to Debug Configurations and create one for a Remote Java Application. Connection type is Standard (Socket Attach), the host is localhost and the port is 8000.

If you want to debug the admin application it's the same thing but with port 8001.

Re: unable to debug demo site using eclipse

Posted: Tue Mar 25, 2014 12:05 pm
by anoop
Thanks a lot..its working fine.. :)

Re: unable to debug demo site using eclipse

Posted: Sun Apr 27, 2014 2:49 pm
by daniel_locious
hi guys,

I am new to the broadleaf commerce and hv no much experience on remote debug. My approach is to test and debug the demo admin site, but there is no code in the demo admin project. I downloaded the broadleaf commerce core modules, but didn't refer my demo admin to depend on them (I tried it in admin/pom.xml but failed). When I try to use remote debug mentioned here by you guys, I got an prompt says "...jvm can't replace the running code with the code in the workspace". I would assume this is because I didn't solve the dependencies.

Anyone can comment a more clear tutorial about the debugging process? Any help will be helpful; I've been struggling on this for days.

Cheers,

Dan

Re: unable to debug demo site using eclipse

Posted: Mon Apr 28, 2014 3:04 pm
by daniel_locious
In case my question was misleading anyone

I figured out it myself. I was silly. Simply add all the projects in the build path of admin project and run the remote debug, adding breakpoints to the core projects code will get there.