question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Debugger] Error for newbs trying to debug on-device

See original GitHub issue

I love the idea being able to debug on the phone (it’s quite essential, actually). However for newbs doing it for the first time (/me raises hand), we’re greeted with the following error:

2015-06-11 16:55:27.840 [error][tid:com.facebook.React.WebSocketExecutor][RCTWebSocketExecutor.m:117] WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’t be completed. Connection refused"
2015-06-11 16:55:29.802 [error][tid:main][RCTWebSocketExecutor.m:58] Connection to http://localhost:8081/debugger-proxy timed out. Are you running node proxy? If                   you are running on the device, check if you have the right IP                   address in `RCTWebSocketExecutor.m`.

I think it’s bad form to ask non-objc devs to edit a class file. There has to be some type of configuration that we can edit outside of a class file buried deep in the depths of a subproject dependency.

Thoughts?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

15reactions
tarang9211commented, Jul 21, 2016

When I tap Debug JS Remotely on my iPhone, i get the same error. Where should I be looking to fix this?

3reactions
jaygarciacommented, Jun 11, 2015

OK, the issue is that i was running from a JS bundle. The docs should state how to get this done properly. Currently there is no mention of updating AppDelegate.m also.

To debug on a real device: Open the file RCTWebSocketExecutor.m and change localhost to the IP address of your computer. Shake the device to open the development menu with the option to start debugging.

Having to update configuration strings in two different places really seems counterintuitive.

I once published the idea of having end-developers update Info.plist. What are your thoughts on leveraging Info.plist for these types of configs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger Error when trying to debug PIC24EP with MPLAB ...
I decided to try and run the debugger on a simpler code to just blink an LED but I get the same error....
Read more >
Not Able To Debug App In Android Studio - Stack Overflow
I solved this issue after doing the following steps: Go to Tools==>android==>Disable ADB integration and enable it again. After that, unplug USB from...
Read more >
Debugging fails with "Error 1" if hardened runtime is enabled
Hi,. I'm unable to debug my mac application under XCode when Hardened Runtime is enabled. I'm getting 'Message from debugger: Error 1'.
Read more >
How to DEBUG android app and SOLVE ERRORS - YouTube
In this video, I am going to solve all the errors by running the application in debug mode.A viewer submitted this project to...
Read more >
Can't debug with VS 2022 17.1.0 Prev 1.0 · Issue #6480 - GitHub
If I start the app via Start Without Debugging - it just hangs on the splash screen. Hence, that was why I tried...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found