How do I debug cutechess-cli engine input/output?

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
Toadofsky
Posts: 25
Joined: Sat Dec 03, 2016 1:20 pm
Contact:

How do I debug cutechess-cli engine input/output?

Post by Toadofsky » Mon Dec 25, 2017 9:00 am

I'm trying to enable self-learning in Sunsetter (in which I compiled w/learning enabled and set learning=1).

What confuses me is that the -debug command-line option doesn't seem to result in anything displayed or logged?

Code: Select all

  -debug                Display all engine input and output

Code: Select all

cutechess-cli -debug -variant crazyhouse -openings file=crazyhouse.pgn format=pgn -engine cmd=Sunsetter/sunsetter -engine cmd=Sunsetter/sunsetter -each proto=xboard tc=240/60+1 -pgnout sunsetter.pgn
(crazyhouse.pgn contains openings 1. d4 and 1. e4,)

elcabesa
Posts: 806
Joined: Sun May 23, 2010 11:32 am
Contact:

Re: How do I debug cutechess-cli engine input/output?

Post by elcabesa » Mon Dec 25, 2017 9:29 am

-debug option print to screen all the comunication between cutechess and the engines. It will not add any new information to pgn file.

mroh
Posts: 29
Joined: Thu Nov 02, 2017 5:51 am
Location: Germany
Contact:

Re: How do I debug cutechess-cli engine input/output?

Post by mroh » Mon Dec 25, 2017 7:32 pm

For writing an cutechess-cli webfrontend I had the same problem on linux:

To get anything from -debug I had to:

vi ~/.config/QtProject/qtlogging.ini and set "*.debug" to true:
*.debug=true

Ferdy
Posts: 4051
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: How do I debug cutechess-cli engine input/output?

Post by Ferdy » Tue Dec 26, 2017 3:23 am

Toadofsky wrote:I'm trying to enable self-learning in Sunsetter (in which I compiled w/learning enabled and set learning=1).

What confuses me is that the -debug command-line option doesn't seem to result in anything displayed or logged?

Code: Select all

  -debug                Display all engine input and output

Code: Select all

cutechess-cli -debug -variant crazyhouse -openings file=crazyhouse.pgn format=pgn -engine cmd=Sunsetter/sunsetter -engine cmd=Sunsetter/sunsetter -each proto=xboard tc=240/60+1 -pgnout sunsetter.pgn
(crazyhouse.pgn contains openings 1. d4 and 1. e4,)
In windows I saved the debug to a file with >
cutechess-cli -debug -variant crazyhouse -openings file=crazyhouse.pgn format=pgn -engine cmd=Sunsetter/sunsetter -engine cmd=Sunsetter/sunsetter -each proto=xboard tc=240/60+1 -pgnout sunsetter.pgn > debug.txt

Post Reply