Debugging UCI engine

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
kdelwat
Posts: 2
Joined: Sat Jan 13, 2018 11:56 pm

Debugging UCI engine

Post by kdelwat » Fri Jan 19, 2018 9:19 pm

I've almost finished the first version of a basic chess engine in Go, which implements UCI for communication. However, I'm running into an annoying sporadic crash when playing games against it, which SCIDvsPC reports as "The UCI engine terminated with error code: "" ".

Is there an alternate interface which will show me the logs of communication between the interface and the engine, so that I can see any error messages on the crash? I can't reproduce the bug without using the interface, typing commands directly never seems to crash it.

Dann Corbit
Posts: 9977
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Debugging UCI engine

Post by Dann Corbit » Fri Jan 19, 2018 9:55 pm

kdelwat wrote:I've almost finished the first version of a basic chess engine in Go, which implements UCI for communication. However, I'm running into an annoying sporadic crash when playing games against it, which SCIDvsPC reports as "The UCI engine terminated with error code: "" ".

Is there an alternate interface which will show me the logs of communication between the interface and the engine, so that I can see any error messages on the crash? I can't reproduce the bug without using the interface, typing commands directly never seems to crash it.
Inbetween:
http://komodochess.com/remote-engine.htm
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

Dann Corbit
Posts: 9977
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Debugging UCI engine

Post by Dann Corbit » Fri Jan 19, 2018 9:55 pm

Besides using inbetween, you can also use Arena and turn debug logs on. It will record the entire uci conversation
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

kdelwat
Posts: 2
Joined: Sat Jan 13, 2018 11:56 pm

Re: Debugging UCI engine

Post by kdelwat » Fri Jan 19, 2018 10:38 pm

Arena is perfect, thanks so much! :D

Post Reply