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

TISTUD-7521:iOS debugger connection refused with SDKs 3.5.0 and 3.5.1 #328

Closed
wants to merge 1 commit into from

Conversation

kolipakakondal
Copy link
Contributor

I couldn't reproduce the issue, so I am going by backtracking.

By analyzing the error log we can understand that, NPE is coming bcoz of URI.getPath() is returning null, this can only happen If URI string does not start path slash(/).

If we look at the uri schemes (app, http, javascript) which we are expecting, Ideally all of them should always start with slash(/) after schema(ex:app:/) but somehow this was missing in certain cases and that leads to this issue.

A simple way to check this is,

if (!uri.isOpaque())
{
//http,app, javascript schema operations
}

@@ -2180,39 +2175,42 @@ protected URI resolveSourceFile(String sourceFile)
try
{
URI uri = new URI(sourceFile);
String scheme = uri.getScheme();
if (FILE.equals(scheme))
if (!uri.isOpaque())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you go!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a guard might help to avoid NPE, however, they would still won't be able to debug the app. The underlying issue seems to be with getting the invalid path from the SDK debugger.

I realized that we log the debug protocol communication at <workspace>/.metadata/.plugins/com.appcelerator.titanium.ios.core/logs/iosdebugger.log and asked the customer for these logs.

@pinnamur
Copy link
Contributor

pinnamur commented Jun 8, 2015

Closing this PR as the we need to resolve the underlying issue with SDK debugger.

@pinnamur pinnamur closed this Jun 8, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants