Skip to content

PonyDebugger is failing for me with status in console "Debugger Failed" #21

amitvaghela opened this Issue Sep 25, 2012 · 5 comments

2 participants


It worked for me once but then after I keep getting,

PonyDebugger Warning: -[PDNetworkDomainController connection:willSendRequest:redirectResponse:] not called, request timestamp may be inaccurate. See Known Issues in the README for more information.

Debugger failed

I've updated my ~/Library/PonyDebugger/src/ponydebugger to latest branch and restarted ponyd but I am still getting those two messages in my console.


wlue commented Sep 26, 2012

That warning will appear if the delegate method does not get called. We noticed this happened in iOS 5.1 when certain HTTP headers were being set. How exactly are you doing your network requests?

Seems a bit weird that "Debugger failed" would happen right after, since that would only show up when the websocket connection closes. Can you give us more context in what's causing these issues?


@wlue code worked for me and then started failing.

Here is code for that I am using,


    PDDebugger *debugger = [PDDebugger defaultInstance];

    // Enable Network debugging, and automatically track network traffic that comes through any classes that NSURLConnectionDelegate methods.
    [debugger enableNetworkTrafficDebugging];
    [debugger forwardAllNetworkTraffic];

    // Enable Core Data debugging, and broadcast the main managed object context.
    [debugger enableCoreDataDebugging];
    [debugger addManagedObjectContext:self.managedObjectContext withName:@"XYZ"];

    // Connect on launch.
    [debugger connectToURL:[NSURL URLWithString:@"ws://localhost:9000/device"]];


Let me know if you want any other information.


I've added PonyDebugger to completely new project and still the same issue. Same result on device and simulator.


@wlue - here is the link to test project -

I hope it helps.

wlue commented Sep 27, 2012

@amitvaghela The test project you linked doesn't have any networking code, so I'm not sure what you're trying to show. I tried running it, and it connects as expected.


@wlue I was getting "Debugger Failed" message after,

[debugger connectToURL:[NSURL URLWithString:@"ws://localhost:9000/device"]];

I got it working now. PonyDebugger was listening to port 9000 but for some reason it failed silently, I restarted my computer and it working now.

Thanks @wlue

@wlue wlue closed this Sep 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.