It is currently Tue Oct 23, 2018 9:27 pm Advanced search

debugging in java

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

debugging in java

Postby yahim91 » Mon Nov 14, 2011 8:11 pm

I'm new in Java and I'm wondering how to debug my project?
yahim91
Cadet
 
Posts: 3
Joined: Fri Nov 11, 2011 11:13 pm

Re: debugging in java

Postby rio.ant » Wed Nov 30, 2011 4:48 am

I'm Wondering too. Hope somebody could give us a hand :) :)
rio.ant
Captain
 
Posts: 20
Joined: Fri Nov 11, 2011 4:54 am

Re: debugging in java

Postby bluegaspode » Wed Nov 30, 2011 7:08 am

set a huge timeout delay in parameters of the python script:

--turntime 1000000 --loadtime 10000000

In the commandline for the java command to start your bot add the following:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y


In Eclipse manually create a new Debug Configuration for a "Remote Application".


When you start the game, Java will wait until a Debugger connects. So just start the Debug mode in Eclipse (and don't forget to set a breakpoint).

Guess when you google for "java debug remote application" you will get more detailed instructions, but this should get you on track.
bluegaspode
Colonel
 
Posts: 51
Joined: Mon Nov 07, 2011 8:38 am


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 2 guests

cron