Display Logs for the Objective-C JMS Client

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

Before You Begin

This procedure is part of Checklist: Build Objective-C (iOS) JMS Clients Using Kaazing Gateway, that includes the following steps:

  1. Use the Objective-C JMS Client API
  2. Secure Your Objective-C Client
  3. Troubleshoot Your Objective-C JMS Client
  4. Display Logs for the Objective-C JMS Client

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

To Display Logs for the Objective-C JMS Client

  1. Build your Objective-C JMS client, as described in Build Objective-C (iOS) JMS Clients.
  2. Add the following line into one of the existing functions, such as viewDidLoad():

    KMTracerDebug = YES;

    For example:

    - (void)viewDidLoad {
      subscribeButton.enabled = NO;
      subscribeButton.alpha = 0.5f;
      sendButton.enabled = NO;
      sendButton.alpha = 0.5f;
      logView.editable = NO;
    
      [super viewDidLoad];
    
      KMTracerDebug = YES;
    }
  3. Build your Xcode project, run the Objective-C client in the Xcode Simulator, and perform some actions for the Objective-C client to log.

    The output is displayed in the Xcode Target Output area.:

Notes

TOP