Tutorial: Debugging Applications On AgentM

Debugging Applications On AgentM

Given an example application:

<html>
    <head></head>
    <body>
        <script>
            // Standard logging
            console.log('This is a console log');
            console.warn('This is a console warn');
            console.info('This is a console info');
            console.error('This is a console error');

            // Logging an object (Must be JSON serializable)
            const myObj = {name: 'hello', arr: [1, 2, 3]};
            console.log(JSON.stringify(myObj))
        </script>
    </body>
</html>

Using MeldCX Dashboard:

We can log in to the MeldCX Dashboard:

  1. Open your device

    img1

  2. Navigate to displays

    img2

  3. Identify the display your app is running on

    img3

  4. Click on the logs tab

    img4

  5. Wait for the websocket to connect

  6. Select the display your app is running on

    img5

  7. If no logs appear, switch to the health tab

    img6

  8. Select clear cache

    img7

  9. Return to the logs tab

    img8

Using Vorlon.JS

Alternative you may choose to use Vorlon JS. Vorlon JS is a powerful remote web app testing utility, it can be found here: VorlonJS