The Debug Console allows you to test some configuration changes and usage right from the PubNub Portal. The console works based on the key set selected at the top of the page rather than the entire app.
To access the debug console, login to PubNub Portal and click the 'Debug Console' icon located at the bottom left of the page.
Debug console allows you to create clients to test a specific key set. Each time you open the Debug Console page, you will find a client already created to publish data to the channel. You can create another 'user' to simulate the exchange of messages by clicking the ‘Create client’ button in the top right corner of the page.
You will also see the ‘Restart Console’ button which allows you to reset the console and start testing from scratch.
Working with Clients
Clients have several options that can be used to manage their behavior and visibility.
Access additional configuration settings for the created client.
- Client - change the SDK generated UUID to a different one and assign a state.
- Channels - define publish and subscribe channels for the client.
- Security - apply Auth key and Cipher key to the client to test some security features.
After editing the settings, remember to click the ‘Update Client’ button to commit your changes.
Immediately deletes the selected client.
Hides all the messages (published and received) from the console, leaving only debug console messages visible.
Toggle Debug Messages
Hides all debug console generated messages, leaving only published and received messages visible.
Populates information about where (in which channel) the client currently is.
Pauses messages being published on the channel client is subscribed to. Missed messages will catch up and appear once the stream is unpaused.
When client is unsubscribed from the channel, messages will stop appearing. Unlike pausing the stream, missed messages do not catch up and will not appear when you resubscribe client to the channel.