Debugging Tool

We provide a debug mode that comes with a set of tools to help you debug your game.

Requirements

  • You can only enable debug mode if your game imports the SDK in a script tag in index.html. It will not work, for example, if you asynchronously inject the SDK into the game via JavaScript.
  • Debug mode does not currently work in the embedded player.

How to enable debug mode

  1. Open the Web hosting tab for your app on developers.facebook.com.
  2. On the top of the page, look for the Debug Mode toggle. Toggle it on.

How to open debug mode

  1. Navigate to your game on Facebook (web or mobile).
  2. On the bottom right corner of your game, look for the debug mode entry point (wrench and screwdriver icon). Tap/click on it.

Tools

  • JS Console provides a web browser-like console for interacting with your game.
  • Overlay Views provides a UI to inspect the state of and interact with your overlay views.

FAQ

  • I enabled debug mode, but I don't see the entry point in my game?
    • First, confirm the requirements are met (see Requirements section above).
    • If you're logged into developers.facebook.com as your Facebook Business Manager account, you may need to use the same account to play the game to see the debug mode entry point.