Debugging UCI engine

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

kdelwat
Posts: 2
Joined: Sun Jan 14, 2018 12:56 am

Debugging UCI engine

Post by kdelwat »

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: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Debugging UCI engine

Post by Dann Corbit »

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: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Debugging UCI engine

Post by Dann Corbit »

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: Sun Jan 14, 2018 12:56 am

Re: Debugging UCI engine

Post by kdelwat »

Arena is perfect, thanks so much! :D