I am just using pygame, I've found that you could add a /#debug when trying the web version.
Other than that I also had to move the entire code base inside a subfolder otherwise pygbag would try to build what was inside my virtual environment.
And I forgot to add "await asyncio.sleep(0)" in my game loop during a refactor and even with debug it wasn't telling me.
Hope that helps !