Display Logs for the Objective-C WebSocket Client

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

Before You Begin

This procedure is part of Checklist: Build Objective-C (iOS) Clients Using Kaazing Gateway:

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

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

To Display Logs for the Objective-C Client

  1. In your Objective-C cleint, add the following line into one of the existing functions, such as viewDidLoad():

    KGTracerDebug = YES;

    For example:

    - (void)viewDidLoad {
      [super viewDidLoad];
      KGTracerDebug = YES;
    }
    
  2. 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

Next Step

Troubleshoot Your Objective-C Client