Bug in proudction I can't reproduce in the studio

Game development with Board Game Arena Studio
Post Reply
User avatar
adela82
Posts: 13
Joined: 05 November 2013, 13:46

Bug in proudction I can't reproduce in the studio

Post by adela82 »

I have a bug in my game that happens once in a blue moon, so I can't reproduce it in development. But it's happening in production as the game is being played much. My question is if there is a way to access to self::trace and self::dump of production in order to find the *@#$ bug!

I'm turning crazy!
User avatar
tchobello
Posts: 693
Joined: 18 March 2012, 13:19

Re: Bug in proudction I can't reproduce in the studio

Post by tchobello »

perhaps a console.log ?
User avatar
ShaPhi7
Posts: 37
Joined: 22 April 2020, 20:44

Re: Bug in proudction I can't reproduce in the studio

Post by ShaPhi7 »

If it's in .js you can add a line saying "debugger;" into your code. Press F12 whilst in Chrome (or otherwise open up your browsers development console) before you run your code. The code should hit a breakpoint on the "debugger;" line and the console will automatically take you to that line and allow you to debug through it.

Obviously remember to remove the debugger; once you're done to avoid the game freezing there in future!
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

Re: Bug in proudction I can't reproduce in the studio

Post by RicardoRix »

Do you have a bug report and a table id number?
There potentially is a way to load this game into your studio game. You have to do it fairly quickly after the game has finished though (maybe 24 hrs?). There are some instructions in the wiki.

The debugger; option doesn't sound like a good idea in production, you may well be introducing inadvertent games freezes into your game as well. And if you can add the debugger statement together with an if statement then you're already most of the way there to know what's happening anyway.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Bug in proudction I can't reproduce in the studio

Post by Een »

RicardoRix wrote: 25 May 2020, 10:51 Do you have a bug report and a table id number?
There potentially is a way to load this game into your studio game. You have to do it fairly quickly after the game has finished though (maybe 24 hrs?). There are some instructions in the wiki.
Fyi, this studio function was broken. I has now been repaired and should work again with the procedure detailed in the wiki "practical debugging" section.
Post Reply

Return to “Developers”