Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amitvaghela opened this issue Sep 25, 2012 · 5 comments
Closed

Comments

@amitvaghela
Copy link

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.

Thanks.

@wlue
Copy link
Contributor

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?

@amitvaghela
Copy link
Author

@wlue code worked for me and then started failing.

Here is code for that I am using,

#if ENABLE_PONYDEBUGGER

    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"]];

#endif

Let me know if you want any other information.

UPDATE:

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

@amitvaghela
Copy link
Author

@wlue - here is the link to test project - https://dl.dropbox.com/u/15946151/TestPony.zip

I hope it helps.

@wlue
Copy link
Contributor

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.

@amitvaghela
Copy link
Author

@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 as completed Sep 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants