Page 1 of 1

Debugging UCI engine

Posted: Fri Jan 19, 2018 10:19 pm
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.

Re: Debugging UCI engine

Posted: Fri Jan 19, 2018 10:55 pm
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

Re: Debugging UCI engine

Posted: Fri Jan 19, 2018 10:55 pm
by Dann Corbit
Besides using inbetween, you can also use Arena and turn debug logs on. It will record the entire uci conversation

Re: Debugging UCI engine

Posted: Fri Jan 19, 2018 11:38 pm
by kdelwat
Arena is perfect, thanks so much! :D