Debugging in the Simulator


You can use the simulator included with the WDC SDK to develop and debug your connectors more quickly. The simulator is a JavaScript application that loads connectors in a similar way to MAPS.

Use the simulator when you are developing your connector, to set breakpoints in the browser, view network requests, and more. Use MAPS periodically during development to confirm that your connector works the same as in the simulator, and then to perform your final testing.

This page includes information about developing and debugging your connectors in the simulator.

Debugging in the simulator

To set up and run the simulator, follow the instructions in the Get Started section.

When you run a connector in the simulator, only the getSchema and getData parts of your connector code run in the simulator window. The interactive phase and authentication phases run in a separate window. This means that messages that you print with console.log will appear in different browser consoles.

To print messages from both windows to the console for the main simulator window, use tableau.log. For example, you might enter the following in your code:

tableau.log("My console message goes here!");

"The simulator user interface."

Simulator tips

Caching in the simulator

If changes to your connector do not appear to take effect in the simulator, the browser might be caching a previous version of your connector. Here are some ways to work around caching issues:

General browser debugging tips