Display Logs for the JavaScript JMS Client

In this procedure, you will learn how to gather data on your Kaazing Gateway JavaScript JMS client.

Before You Begin

This procedure is part of Checklist: Build JavaScript JMS Clients.

Note: Learn about supported browsers, operating systems, and platform versions in the Release Notes.

To Display Logs for the JavaScript JMS Client

  1. Build your JavaScript JMS client, as described in Checklist: Build JavaScript JMS Clients.
  2. Edit the client HTML page containing the JavaScript for your the JMS application an add the following line in a JavaScript function:


    For example, you can modify the HTML body tag like this:

    <body onload="Tracer.setTrace(true)">
    Note: Your program must call Tracer.setTrace(true) after the WebSocket.js and JmsClient.js included files are loaded in the browser. You can add Tracer.setTrace(true) to a window onload event, or simply add it to a function and call that function using a event.
  3. Navigate to your browser's console (such as Firebug for Firefox, or Developer Tools for Google Chrome, Safari, or Microsoft Internet Explorer 8).

    Browser Steps to Access the Browser's Console
    Mozilla Firefox

    1. Download and install Firebug.

    2. Restart Firefox.

    3. In the lower right corner of the browser window, click the Firebug icon to display the console.

    Google Chrome Press Option-Command-J, then click Console, or choose View > Developer > Developer Tools, then click Console.
    Safari 5 Choose Developer > Show Error Console.
    Microsoft Internet Explorer 8

    Press F12 or choose Tools > Developer Tools.

  4. Visit the page running the client code. You should now see log messages in the console.

See Also

To learn how to build clients using the other client libraries, see the client developer documentation in the For Developer's section of the documentation page.