[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/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 live

It is currently Sun Apr 22, 2018 12:19 pm Advanced search

Debugging live

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

Debugging live

Postby jlgrall » Mon Oct 31, 2011 5:32 pm

Last edited by jlgrall on Tue Nov 01, 2011 9:10 pm, edited 3 times in total.
jlgrall
Lieutenant-Colonel
 
Posts: 41
Joined: Sun Oct 23, 2011 11:26 am

Re: Debugging live

Postby jlgrall » Mon Oct 31, 2011 5:38 pm

Attachments
ChannelToFiles.zip
Unzip the file, then use ChannelToFiles.jar as your bot.
(8.56 KiB) Downloaded 90 times
Last edited by jlgrall on Tue Nov 01, 2011 8:38 pm, edited 8 times in total.
jlgrall
Lieutenant-Colonel
 
Posts: 41
Joined: Sun Oct 23, 2011 11:26 am

Re: Debugging live

Postby jlgrall » Mon Oct 31, 2011 5:59 pm

Last edited by jlgrall on Sat Nov 05, 2011 1:37 am, edited 1 time in total.
jlgrall
Lieutenant-Colonel
 
Posts: 41
Joined: Sun Oct 23, 2011 11:26 am

Re: Debugging live

Postby jlgrall » Wed Nov 02, 2011 2:38 pm

Update:
- Added pre-compiled file for easy install in the post 2.
- Updated the how to accordingly.
jlgrall
Lieutenant-Colonel
 
Posts: 41
Joined: Sun Oct 23, 2011 11:26 am

Re: Debugging live

Postby bodyloss » Fri Nov 04, 2011 3:46 pm

This looks fantastic, thank you so much.
However in the second code listing for ChannelFromFiles I think you may have copied in the code from ChannelToFiles. Top notch work though
bodyloss
Cadet
 
Posts: 1
Joined: Fri Nov 04, 2011 3:43 pm

Re: Debugging live

Postby jlgrall » Sat Nov 05, 2011 1:51 am

jlgrall
Lieutenant-Colonel
 
Posts: 41
Joined: Sun Oct 23, 2011 11:26 am

Re: Debugging live

Postby crispy » Sat Nov 05, 2011 11:13 am

Last edited by crispy on Thu Nov 10, 2011 12:29 pm, edited 1 time in total.
crispy
Lieutenant
 
Posts: 10
Joined: Sat Nov 05, 2011 3:07 am

Re: Debugging live

Postby throx » Sat Nov 05, 2011 3:59 pm

Even easier - put a DebugBreak() as the first statement of your main function and attach the debugger when it tells you the program has crashed. Obviously put the appropriate preprocessor guards around it.

throx
throx
Cadet
 
Posts: 1
Joined: Sat Nov 05, 2011 3:57 pm

Re: Debugging live

Postby gerg.bowering » Wed Nov 09, 2011 11:01 pm

Another option for debugging Java bots (using Eclipse IDE) is described here:

Have not yet tried this with Ants but used this approach successfully in other Java projects, and for Android development.

Cheers
Greg
gerg.bowering
Cadet
 
Posts: 7
Joined: Wed Nov 02, 2011 4:30 am

Re: Debugging live

Postby bilbo » Thu Nov 10, 2011 10:12 pm

Hi

I have tried the above solution using the following command

python ../tools/playgame.py --loadtime 10000 --turntime 600000 "java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 -jar MyBot.jar" "python ../tools/sample_bots/python/HunterBot.py" --map_file ../tools/maps/example/tutorial1.map --log_dir game_logs --turns 60 --scenario --food none --player_seed 7 --verbose -e

I added the loadtime and turntime params to debug it, but it get blocked in AbstractSystemInputReader class, readSystemInput() method, while ((c = System.in.read()) >= 0) { line.

I guess is waitting for the input, which I expected to be issue after 10 seconds (loadtime param).

What am I doing wrong? Do you know how to debug it using this method?

Best regards
bilbo
Cadet
 
Posts: 2
Joined: Fri Nov 04, 2011 5:22 pm

Next

Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron