inspector works but no logs...

547 views
Skip to first unread message

dev gmo

unread,
Mar 28, 2012, 4:04:00 PM3/28/12
to weinre
Hi,

I've been testing weinre with phonegap (Cordova 1.5) application with
Xcode 3.2.6 and the simulator (4.3) .

It works well for the inspector. I can see the html, and modify the
code. BUT the network, timeline and console don't work...

I use console.log () in my script.

There are lots of errors in the server console :

2012-03-28 12:58:23.317:INFO:weinre:extensions not enabled: ~/.weinre/
extensions is not a directory
2012-03-28 12:59:11.130:INFO:weinre:target 1240428729: weinre: target
1240428729 connected to client 1240428728
2012-03-28 12:59:12.205:WARN:weinre:client 1240428728: weinre:
invocation exception on Object.childNodeInserted(): TypeError:
'undefined' is not an object
2012-03-28 12:59:12.205:WARN:weinre:client 1240428728: weinre:
invocation exception on Object.childNodeRemoved(): TypeError:
'undefined' is not an object
2012-03-28 12:59:12.205:WARN:weinre:client 1240428728: weinre:
invocation exception on Object.childNodeInserted(): TypeError:
'undefined' is not an object
2012-03-28 12:59:12.206:WARN:weinre:client 1240428728: weinre:
invocation exception on Object.childNodeInserted(): TypeError:
'undefined' is not an object
2012-03-28 12:59:12.206:WARN:weinre:client 1240428728: weinre:
invocation exception on Object.childNodeRemoved(): TypeError: 'null'
is not an object

Do you know what the problem is ?

Thanks

Greg

Patrick Mueller

unread,
Mar 28, 2012, 6:47:22 PM3/28/12
to wei...@googlegroups.com
On Wednesday, March 28, 2012 4:04:00 PM UTC-4, dev gmo wrote:
I've been testing weinre with phonegap (Cordova 1.5) application with
Xcode 3.2.6 and the simulator (4.3) .

Thanks for providing version #'s of stuff?  What version of weinre? :-)
 
It works well for the inspector. I can see the html, and modify the
code. BUT the network, timeline and console don't work...

Describe "don't work".
 
I use console.log () in my script.

But you never see the console message?
 
There are lots of errors in the server console :

2012-03-28 12:58:23.317:INFO:weinre:extensions not enabled: ~/.weinre/
extensions is not a directory
...

These are spurious warnings.  Future releases will do a better job of keeping them from being displayed.
 
Do you know what the problem is ?

Nope!

Try switching the order of the <script src=> for weinre and cordova. 

dev gmo

unread,
Mar 29, 2012, 1:48:39 AM3/29/12
to weinre
Oh sure the version of weinre... I use "weinre build
1.6.1build-2011-12-01--20-14-22" ;-) I've tried the jar version and
the mac application to see if it would be different... but i've got
the same problem.

In fact for Network, there is a message in the bottom : "No requests
capture. Reload the page to see detailed information on the network
activity".
For the Timeline, and the Console nothing happen. It's empty. And yes
when I use console.log (...) onDeviceReady() for instance, there is no
log in the console at all.

I've put the server's log just in case.. but I understand it's just
warnings.

Therefore I've tried switching the order of the <script src=> for
weinre and cordova, but it's the same.

I really don't understand what I've forgotten to do...

Thanks for your quickly answer and by the way congratulations for this
amazing work!

Patrick Mueller

unread,
Mar 29, 2012, 8:03:09 AM3/29/12
to wei...@googlegroups.com
On Thursday, March 29, 2012 1:48:39 AM UTC-4, dev gmo wrote:
Oh sure the version of weinre... I use "weinre build
1.6.1build-2011-12-01--20-14-22" ;-) I've tried the jar version and
the mac application to see if it would be different... but i've got
the same problem.

Could maybe try an older version?  Or a newer version!

older version from wherever you got the current version.

In fact for Network, there is a message in the bottom : "No requests
capture. Reload the page to see detailed information on the network
activity".
For the Timeline, and the Console nothing happen. It's empty. And yes
when I use console.log (...) onDeviceReady() for instance, there is no
log in the console at all.

I think may be a Web Inspector fart about the network capture I haven't managed to hide yet.  Timeline you DO have to "turn on" to have events captured.

Are you sure you're actually getting INTO your onDeviceReady()?
 
I've put the server's log just in case.. but I understand it's just
warnings.

No, thanks for the log, I appreciate getting as much info as I can, even if it's not relevant.
 
Therefore I've tried switching the order of the <script src=> for
weinre and cordova, but it's the same.

I was hoping it might be as easy as that.
 
I really don't understand what I've forgotten to do...

Sometimes you're getting a syntax error in your own code - or something - that's actually preventing portions of your code from ever running.  Have you tried running the page in a desktop browser, hacking the Cordova bits so they'll work (in  a throw-away copy of your page/js/css/etc).  Then you can run real web inspector.

Also, if you have any ability to run the latest Xcode, with the latest iOS 5.whatever simulator, you can run REAL web inspector in that, with http://www.iwebinspector.com/

Reply all
Reply to author
Forward
0 new messages