How to debug MatchMaker

Sometime, it has error with matchmaker. Like this

alt text

The problem is I don't know where the line of code that cause error. How can I debug. It just happen sometime and when I restart the service, it works again.
I tried run with DEBUG=colyseus:* node index.js but no error output. I tried to add log in your code and find out that in the CreateRoom function,
const roomsSpawnedByProcessId = yield exports.presence.hgetall(getRoomCountKey());
roomsSpawnedByProcessId is null, I used Redis.
No idea why

Please help me. My product is in public test and prepare for official publish. And I got this problem

Hi @boygiandi, this error is likely to be coming from your application. If you're using TypeScript, the compiler should be able to warn you where the issue is.

This could be happening if you have if (yourConstant = x) instead of if (yourConstant == x) for example.

@endel said in How to debug MatchMaker:

ming from your application. If you're using TypeScript, the compiler should be able to warn you where the issue is.
This could be happening if you have if (yourCon

No, it come from the MatchMaker request