square / PonyDebugger

Remote network and data debugging for your native iOS app using Chrome Developer Tools
Other
5.86k stars 595 forks source link

No Clients Connected #158

Open Skornos opened 9 years ago

Skornos commented 9 years ago

Hi, I am using PonyDebugger according to your tutorial, but I can't get it work In terminal I am running:

    ponyd serve --listen-interface=127.0.0.1

Page in Chrome says:

    Connect a PonyDebugger client to ws://127.0.0.1:9000/device.

I have installed client with Cocoapods:

    pod 'PonyDebugger' , :head, :configurations => ['Debug']

And setup client:

    PDDebugger *debugger = [PDDebugger defaultInstance];
//    [debugger autoConnect];
    [debugger connectToURL:[NSURL URLWithString:@"ws://127.0.0.1:9000/device"]];
    [debugger enableNetworkTrafficDebugging];
    [debugger forwardAllNetworkTraffic];

Autoconnect fails with SIGABRT so I am using the address ws://127.0.0.1:9000/device

Logs output:

    Connecting to ws://127.0.0.1:9000/device
    CLTilesManagerClient: initialize, sSharedTilesManagerClient
    CLTilesManagerClient: init
    CLTilesManagerClient: reconnecting, 0x17003f6e0
    CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!

But I am still seeing No Clients Connected in Chrome browser.

Did I miss something? Thanks.