Page 1 of 1

How to troubleshoot a tutorial?

Posted: 13 February 2021, 23:07
by Ciffy
Hey all, first timer here going through the reversi tutorial and trying to get my feet wet. I've made it up until the point where it should be showing the possible moves, but it's not. There's nothing for me to click on to advance the game and nothing in any of the logs that I can find that gives me anything to go on. I've been following the wiki article step by step as best as I can tell, so I'm not sure where to start with troubleshooting. Tips or pointers would be greatly appreciated.

https://en.doc.boardgamearena.com/Tutorial_reversi

https://studio.boardgamearena.com/gamep ... versiciffy

Re: How to troubleshoot a tutorial?

Posted: 14 February 2021, 16:02
by BrianLovesMarvel
I'm new too and still learning a lot. I've found going into the dev tools on the browser (Ctl-Shift-I) and adding debugging output to the javascript console and alerts to be very helpful.

Code: Select all

console.log(var); 
console.log("testing"); 
alert("var="+var);

There are further suggestions here:
https://en.doc.boardgamearena.com/Practical_debugging

Best wishes, Brian

Re: How to troubleshoot a tutorial?

Posted: 14 February 2021, 16:18
by Ciffy
Thanks for the response and holy crap that link looks super useful! I was already using Js alerts to no avail. Tried it in another browser and it worked so I knew it wasn't the code. Turns out, in my case, I needed a Ctl+F5 because the css or whatever was cached.