Titanium Desktop: Debugging an iframe's javascript

You must Login before you can answer or comment on any questions.

I build a web app that works just fine on Chrome. I made a Titanium Desktop app that simply has an iframe loading that page.

The problem is that the Titanium app is having an error while loading at some point, and it just kills the iframe. I need to debug this, but I'm not sure how to do it (since it works just fine on the browser).

console.log

Can I do console.log to try to pinpoint the problem? console.log doesn't seem to work from inside the iframe.

Inspector

Can I open webkit's inspector somehow? Right clicking inside the iframe and choosing "inspect this element" does nothing.

I'm using Lion with the 1.1.0 API. Trying to open the inspector throws this exception: "*** -[NSURL initFileURLWithPath:]: nil string parameter"

3 Answers

Apparently this is solved by the new API 1.2.0RC3 on Lion. Thanks anyways!

No, this is not something that was fixed, the 1.2.0.RC3 was the first version to support Lion. There is a new 1.2.0.RC4 coming out that will fix the last known issue on Lion. Do not use the 1.1.0 SDK on Lion as it doesn't work.

Your Answer

Think you can help? Login to answer this question!