[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - Debugging Tools

It is currently Mon Jun 18, 2018 6:06 am Advanced search

Debugging Tools

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

Debugging Tools

Postby zanirzrold » Sun Nov 06, 2011 9:18 pm

I was wondering how you lot are going about debugging when something is not working properly. Normally I'm used to running stuff in Eclipse in debug mode and being able to break, look at values, etc. Am I missing some easy way to do this, or is there a different tool I should be using.

Many thanks!
zanirzrold
Lieutenant
 
Posts: 11
Joined: Sun Nov 06, 2011 9:07 pm

Re: Debugging Tools

Postby mrflamer » Sun Nov 06, 2011 9:24 pm

HI,

if you're using java, you can take advantage of the remote debugging of eclipse.

You have to start your bot with "java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -jar ""..\src\MyBot.jar"""

Then the bot will wait until you hang in with a debugger.

How to set this up in eclipse can be found here:
http://www.eclipsezone.com/eclipse/forums/t53459.html

It is very very convinient to use.
mrflamer
Cadet
 
Posts: 2
Joined: Sun Nov 06, 2011 9:20 pm

Re: Debugging Tools

Postby Xeltor » Mon Nov 07, 2011 5:29 am

I tried that but it doesn't work... or maybe i don't understant how it should work...
i've added the line in my luncher script but i can't open it with eclips, and then it times out because it's still waiting for the debuger...

how is it supposed to work step by step?
Xeltor
Cadet
 
Posts: 1
Joined: Mon Nov 07, 2011 5:20 am

Re: Debugging Tools

Postby mrflamer » Mon Nov 07, 2011 8:22 am

mrflamer
Cadet
 
Posts: 2
Joined: Sun Nov 06, 2011 9:20 pm

Re: Debugging Tools

Postby mac » Tue Nov 08, 2011 12:31 am

Did anybody have success in using this with Aptana studio / PyDev [python plugin for eclipse]?
mac
Brigadier-General
 
Posts: 151
Joined: Mon Oct 31, 2011 6:39 am

Re: Debugging Tools

Postby RejectCode » Wed Nov 09, 2011 12:16 am

RejectCode
Lieutenant
 
Posts: 19
Joined: Fri Oct 28, 2011 2:44 pm

Re: Debugging Tools

Postby crispy » Wed Nov 09, 2011 12:30 am

I attach a debugger as described here (looks like throx has a slightly nicer method - the result is the same though): viewtopic.php?f=25&t=1720#p10829

If you need to visualise stuff check out viewtopic.php?f=25&t=1633
crispy
Lieutenant
 
Posts: 10
Joined: Sat Nov 05, 2011 3:07 am

Re: Debugging Tools

Postby chillinPanda » Sat Nov 12, 2011 1:46 am

hello, I am using mrflamer's method of debugging with remote debugging with eclipse. I try to use some output methods for fast debugging like

System.out.println("aeskld");
System.err.println("aeskld");

none of them is displayed in eclipse. How do I get the bots standard output to my eclipse console window?

thanks
User avatar
chillinPanda
Cadet
 
Posts: 3
Joined: Sat Nov 12, 2011 1:39 am

Re: Debugging Tools

Postby ThaKidd04 » Thu Nov 24, 2011 7:55 pm

I tried mrflamers technique but when the game starts (unless the program crashes) it just hangs... any help?
ThaKidd04
Cadet
 
Posts: 1
Joined: Thu Nov 24, 2011 7:47 pm

Re: Debugging Tools

Postby amstan » Wed Nov 30, 2011 3:54 am

Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron