-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Port Forwarding Failed #376
Comments
It's odd that it works sometimes, but not others. That makes things tricky. The SWF debugger exits with that error message when it cannot find your device listed in the output from When you tried running Also, don't ignore the possibility that your USB cable has some minor damage. I've had to throw out more than one that would randomly disconnect when I picked up and moved the device that I had connected to my computer for a debugging session. |
I'm wondering if there's just something finnicky on the VS Code side. idb -devices has yet to fail to identify my phone. It also works in Animate (which I'm trying to migrate from since it's clunky) and iTools (which I ended up using to install the ipa with, but still can't get debug working). I did think the USB cable might be at fault, so I swapped it with the one we use on another device, and still the same sadly. |
A while ago I have started to experience problem with my external audio interface which is being connected with my laptop. I'm on windows and my laptop is not new. After trying several things changing cable/contacting with support of that audio interface I ended up that my usb itself is at some point corrupted. I encourage you to try with completely different laptop/PC to see whether is not a hardware problem itself. |
A hardware problem that ONLY affects VS Code? I see my phone in iTunes. idb -devices sees my phone. I can install my app via Animate, and likewise I can use iTools to install and manage my device as well. A hardware issue that ONLY affects VS Code seems very unlikely. |
It's just a shot. I hope you resolve your issue. |
Thanks, I do too! Josh your mention of parsing got me thinking it might be my device name since it has an apostrophe in it, but the same still happens on an iPhone X simply named "iPhone X". For now, what fixes it is a reboot, so I'll do that. Perhaps there's some process that gets hung or stuck that causes things to lock up like this. |
Yeah, I could see that being a possibility. It may depend on how you stop the debugger. I'll try to find some time to look into it. |
I tried a few things on my computer, but it seems to find my iPad pretty consistently. The parser ignores the device's name. It only cares about the device's "handle". It reads the output from
If it finds the three spaces, it looks for a tab character ( If a line does not start with three spaces, the parser skips it completely and tries the next line. When you run |
Sorry for the delay josh -- I copy and pasted the output into an editor and it doesn't appear that's any different. Also, it works sometimes and others not, so I assume your parsing is fine. As a reboot tends to fix it, I'm going to go with some process gets hung or locked somewhere. What that is, I'm not sure, but I will keep poking around when it happens. When calling idb, does your code rely on anything else? i.e. I know Animate has its own instance of adb running etc. |
No other processes are started by the SWF debugger before idb is used to get the device handle. After that, the debugger runs commands with adt only. It does not use adb directly (I assume that adt runs adb behind the scenes). I wouldn't expect adb to have any conflicts here, since it's for Android, and the issue is with iOS specifically. |
Yeah, I didn't expect so either (I only mentioned adb since that's the process that came to mind that Animate manages and thought iOS may have a similar). No one else seems to be having the issue and I have a short-term workaround, so we can close this up. If I can figure out how to reliably reproduce it (and it's something that affects everyone), I'll definitely share |
Was able to reproduce twice this morning. The build process as you know can be a bit lengthy, so I switched over to answer some emails while waiting for the "enter password" prompt. I guess I took longer than it liked as I got a popup error asking me to check launch.json. After that, I repeatedly got the
error until I rebooted my computer. Tried it again (letting that part time out) and was able to reproduce the issue. Another reboot (whole reboot, just closing the app doesn't seem to work) fixed it. |
Thanks! That seems like it might help me reproduce too. |
Hi, This topic is closed, but I'm experiencing the same problem getting the error message: ida -devices shows the device connected and I'm able to fwd the port and run the debugger manually. My handler number is 2 digits, so I'm wondering if it has to do with the parsing. |
I don't have a direct answer for you, but for me, I found it still happens from time to time so I've stopped relying on it. What I do now is build a debug release ipa and install it with itools (you can use itunes or w/e). Then I just launch remote debug (attach) in VSCode and go from there. This also makes it smoother to repeatedly test the same build after relaunches. |
@pbranco-magikbee Can you run I've never seen two digits on an iOS device, so it'll be hard for me to reproduce myself. That's why it's important to try to keep the formatting exactly the same. I'm looking for how two digits affects the rendering of a line. It might have a different number of spaces at the beginning, or something like that, so it's super important to get that right. Thanks! |
Here it goes:
|
@pbranco-magikbee Thank you! It looks like there are two spaces instead of three, so I'll need to update that parsing code. |
Getting this repeatedly. Then suddenly, it will work, then once again it doesn't work.
Any ideas?
The text was updated successfully, but these errors were encountered: