Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the general method for debugging a Soar program?

debugging method program SOAR
0
Posted

Whats the general method for debugging a Soar program?

0

The main tools that you need to use are the commands below. You apply them where the behaviour is odd, and use them to understand what is going on. Personally I (FER), prefer the Tcl/Tk interface for debugging because many of these commands become mouse clicks on displays. print Prints out a value in working memory. print -stack (pgs in earlier versions of Soar) Prints out the current goal stack: e.g., : ==>S: S1 : ==>S: S2 (state no-change) matches (ms in earlier versions of Soar) Shows you which productions will fire on the next elaboration cycle. matches Shows you which conditions in a given production matched and which did not. This is very important for finding out why a production did or did not fire. e.g., soar> matches production1*chunk >>>> (state ^there-is-a-blue-thing yes) (^there-is-a-big-thing yes) (^superstate) 0 complete matches. This shows that the first condition did not match. preferences 1 (The 1 is used to request a bit more detail.) Thi

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.