Debug a WebApp in Windows Phone using weinre - problems

324 views
Skip to first unread message

Sara Silva

unread,
May 20, 2014, 2:24:24 PM5/20/14
to wei...@googlegroups.com
Hello,

i am trying to debug a WebApp using the Windows Phone device, in my case i used Lumia 925 with WP8.1.

For debug the code i try to used WEINRE
and i read theses articles:

    How to debug Windows Phone HTML5 Apps (realy nice!)
    Vídeo about using Weinre
    Now on IE and Firefox: Debug your mobile HTML5 page remotely with weinre (WEb INspector REmote)

i ran the weinre



i can see the page weinre in http://172.16.3.157:8080/ and i can see the page http://172.16.3.157:8080/client/#anonymous but after few seconds i ran the app, the page shows:


​and when i have the target connect i can click on the link (i am not sure if i need, i think yes, but can be wrong)


i don´t have Firewall on, is off....

Why the device don´t keep connect?

Patrick Mueller

unread,
May 20, 2014, 2:42:20 PM5/20/14
to wei...@googlegroups.com
A common problem when using weinre with a phone is to make sure that the phone and your weinre server are running on the same network; typically a wifi network.  If the phone is just connecting with the cell access, it probably won't be able to see your weinre server.

It would be useful to see what your <script src=""></script> line looks like in your HTML file, to see what weinre server you are attempting to connect with.

You may have better luck running a weinre server on a public network.  I have one running here:


To use it, you'd add this to your HTML:


You can also easily run your own weinre on a public PaaS, directions here:

Sara Silva

unread,
May 20, 2014, 3:04:29 PM5/20/14
to wei...@googlegroups.com
The WP and the pc are in the same network (using Wifi)

is this i put in the code
 <script src="http://172.16.3.157:8080/target/target-script-min.js#anonymous"></script>


i changed my code and add this
and i got the same problem



​the device is connected for 10seconds.... no more.


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre

---
You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/UsjDmYbzss4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--


Best Regards / Cumprimentos
Sara Silva

Microsoft MVP | MCPD | MCTS
Nokia Developer Champion

 

Patrick Mueller

unread,
May 20, 2014, 3:55:30 PM5/20/14
to wei...@googlegroups.com
Ah, in that case, it sounds like something bad is happening in the web page, and killing the weinre connection.

Can you try running the weinre server (locally, if you see the 10 second connection that way) with the --debug true --verbose true options - it may end up indicating what the problem is.


If that doesn't help, any chance you can run the app on an iOS or Android device, and use the native debuggers for those environments, to see if you can catch the problem that way?  For more info on doing that, see: http://prototest.com/guide-to-remote-debugging-ios-and-android-mobile-devices/

Sara Silva

unread,
May 20, 2014, 4:07:47 PM5/20/14
to weinre
I need to run the version of the app in WP, because the problem is inside the WP app... in IOS and Android the app works well....and i tried to use IE Desktop but is not enough.....



here is the output for the test i did now:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\nb14696>weinre --boundHost -all- --debug -true --verbose -true
2014-05-20T20:02:25.720Z weinre: pid:                 6248
2014-05-20T20:02:25.724Z weinre: version:             2.0.0-pre-HH0SN197
2014-05-20T20:02:25.724Z weinre: node versions:
2014-05-20T20:02:25.725Z weinre:    http_parser: 1.0
2014-05-20T20:02:25.725Z weinre:    node       : 0.10.28
2014-05-20T20:02:25.725Z weinre:    v8         : 3.14.5.9
2014-05-20T20:02:25.725Z weinre:    ares       : 1.9.0-DEV
2014-05-20T20:02:25.725Z weinre:    uv         : 0.10.27
2014-05-20T20:02:25.725Z weinre:    zlib       : 1.2.3
2014-05-20T20:02:25.725Z weinre:    modules    : 11
2014-05-20T20:02:25.725Z weinre:    openssl    : 1.0.1g
2014-05-20T20:02:25.725Z weinre: options:
2014-05-20T20:02:25.725Z weinre:    httpPort:     8080
2014-05-20T20:02:25.725Z weinre:    boundHost:    -all-
2014-05-20T20:02:25.725Z weinre:    verbose:      true
2014-05-20T20:02:25.726Z weinre:    debug:        true
2014-05-20T20:02:25.726Z weinre:    readTimeout:  5
2014-05-20T20:02:25.726Z weinre:    deathTimeout: 15
2014-05-20T20:02:25.766Z weinre: starting server at http://localhost:8080
2014-05-20T20:03:29.349Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.349Z weinre: POST / [request]
2014-05-20T20:03:29.349Z weinre:    {"id":"anonymous"}
2014-05-20T20:03:29.352Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.352Z weinre: POST / 200 [response]
2014-05-20T20:03:29.352Z weinre:    {"channel":"c-1","id":"anonymous"}
2014-05-20T20:03:29.446Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.446Z weinre: POST /c-1 [request]
2014-05-20T20:03:29.446Z weinre:    Network.cachedResources(["c-1::1"])
2014-05-20T20:03:29.490Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.490Z weinre: POST /c-1 [request]
2014-05-20T20:03:29.490Z weinre:    Inspector.hideDOMNodeHighlight([null])
2014-05-20T20:03:29.490Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:03:29.490Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:03:29.490Z weinre:    Inspector.removeAllScriptsToEvaluateOnLoad([
null])
2014-05-20T20:03:29.490Z weinre:    WeinreClientCommands.getExtensions(["c-1::2"
])
2014-05-20T20:03:29.490Z weinre:    Inspector.populateScriptObjects(["c-1::3"])
2014-05-20T20:03:29.490Z weinre:    Console.setConsoleMessagesEnabled([true,null
])
2014-05-20T20:03:29.490Z weinre:    CSS.getSupportedCSSProperties(["c-1::4"])
2014-05-20T20:03:29.492Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.492Z weinre: GET /c-1 200 [response]
2014-05-20T20:03:29.492Z weinre:    WeinreClientEvents.sendCallback(["c-1::2",[[
]]])
2014-05-20T20:03:29.517Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.517Z weinre: POST /c-1 [request]
2014-05-20T20:03:29.518Z weinre:    WeinreClientCommands.registerClient(["c-1::5
"])
2014-05-20T20:03:29.519Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.519Z weinre: GET /c-1 200 [response]
2014-05-20T20:03:29.519Z weinre:    WeinreClientEvents.sendCallback(["c-1::5",{"
channel":"c-1","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.1
68.1.74"}])
2014-05-20T20:03:29.519Z weinre:    WeinreClientEvents.serverProperties([{"httpP
ort":"8080","boundHost":"-all-","verbose":"true","debug":"true","readTimeout":"5
","true":"true","deathTimeout":"15","staticWebDir":"C:\\Users\\nb14696\\AppData\
\Roaming\\npm\\node_modules\\weinre\\web","version":"2.0.0-pre-HH0SN197"}])
2014-05-20T20:03:29.519Z weinre:    WeinreClientEvents.clientRegistered([{"chann
el":"c-1","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.168.1.
74"}])
2014-05-20T20:03:29.522Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.523Z weinre: POST /c-1 [request]
2014-05-20T20:03:29.523Z weinre:    WeinreClientCommands.getTargets(["c-1::6"])
2014-05-20T20:03:29.523Z weinre:    WeinreClientCommands.getClients(["c-1::7"])
2014-05-20T20:03:29.524Z weinre: -----------------------------------------------
---
2014-05-20T20:03:29.525Z weinre: GET /c-1 200 [response]
2014-05-20T20:03:29.525Z weinre:    WeinreClientEvents.sendCallback(["c-1::6",[[
]]])
2014-05-20T20:03:29.525Z weinre:    WeinreClientEvents.sendCallback(["c-1::7",[[
{"channel":"c-1","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192
.168.1.74"}]]])
2014-05-20T20:04:41.561Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.561Z weinre: POST / [request]
2014-05-20T20:04:41.561Z weinre:    {"id":"anonymous"}
2014-05-20T20:04:41.562Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.562Z weinre: POST / 200 [response]
2014-05-20T20:04:41.562Z weinre:    {"channel":"c-2","id":"anonymous"}
2014-05-20T20:04:41.625Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.626Z weinre: POST /c-2 [request]
2014-05-20T20:04:41.626Z weinre:    Network.cachedResources(["c-2::1"])
2014-05-20T20:04:41.637Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.637Z weinre: POST /c-2 [request]
2014-05-20T20:04:41.637Z weinre:    Inspector.hideDOMNodeHighlight([null])
2014-05-20T20:04:41.637Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:04:41.637Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:04:41.637Z weinre:    Inspector.removeAllScriptsToEvaluateOnLoad([
null])
2014-05-20T20:04:41.637Z weinre:    WeinreClientCommands.getExtensions(["c-2::2"
])
2014-05-20T20:04:41.638Z weinre:    Inspector.populateScriptObjects(["c-2::3"])
2014-05-20T20:04:41.638Z weinre:    Console.setConsoleMessagesEnabled([true,null
])
2014-05-20T20:04:41.641Z weinre:    CSS.getSupportedCSSProperties(["c-2::4"])
2014-05-20T20:04:41.645Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.647Z weinre: GET /c-2 200 [response]
2014-05-20T20:04:41.649Z weinre:    WeinreClientEvents.sendCallback(["c-2::2",[[
]]])
2014-05-20T20:04:41.677Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.677Z weinre: POST /c-2 [request]
2014-05-20T20:04:41.677Z weinre:    WeinreClientCommands.registerClient(["c-2::5
"])
2014-05-20T20:04:41.680Z weinre:    WeinreClientCommands.getTargets(["c-2::6"])
2014-05-20T20:04:41.682Z weinre:    WeinreClientCommands.getClients(["c-2::7"])
2014-05-20T20:04:41.685Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.687Z weinre: GET /c-1 200 [response]
2014-05-20T20:04:41.690Z weinre:    WeinreClientEvents.clientRegistered([{"chann
el":"c-2","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.168.1.
74"}])
2014-05-20T20:04:41.695Z weinre: -----------------------------------------------
---
2014-05-20T20:04:41.699Z weinre: GET /c-2 200 [response]
2014-05-20T20:04:41.701Z weinre:    WeinreClientEvents.sendCallback(["c-2::5",{"
channel":"c-2","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.1
68.1.74"}])
2014-05-20T20:04:41.704Z weinre:    WeinreClientEvents.serverProperties([{"httpP
ort":"8080","boundHost":"-all-","verbose":"true","debug":"true","readTimeout":"5
","true":"true","deathTimeout":"15","staticWebDir":"C:\\Users\\nb14696\\AppData\
\Roaming\\npm\\node_modules\\weinre\\web","version":"2.0.0-pre-HH0SN197"}])
2014-05-20T20:04:41.706Z weinre:    WeinreClientEvents.clientRegistered([{"chann
el":"c-2","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.168.1.
74"}])
2014-05-20T20:04:41.709Z weinre:    WeinreClientEvents.sendCallback(["c-2::6",[[
]]])
2014-05-20T20:04:41.711Z weinre:    WeinreClientEvents.sendCallback(["c-2::7",[[
{"channel":"c-1","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192
.168.1.74"},{"channel":"c-2","id":"anonymous","hostName":"192.168.1.74","remoteA
ddress":"192.168.1.74"}]]])
2014-05-20T20:04:47.066Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.066Z weinre: POST / [request]
2014-05-20T20:04:47.067Z weinre:    {"id":"anonymous"}
2014-05-20T20:04:47.069Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.071Z weinre: POST / 200 [response]
2014-05-20T20:04:47.074Z weinre:    {"channel":"c-3","id":"anonymous"}
2014-05-20T20:04:47.139Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.140Z weinre: POST /c-3 [request]
2014-05-20T20:04:47.140Z weinre:    Network.cachedResources(["c-3::1"])
2014-05-20T20:04:47.152Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.152Z weinre: POST /c-3 [request]
2014-05-20T20:04:47.152Z weinre:    Inspector.hideDOMNodeHighlight([null])
2014-05-20T20:04:47.155Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:04:47.157Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-
group",null])
2014-05-20T20:04:47.160Z weinre:    Inspector.removeAllScriptsToEvaluateOnLoad([
null])
2014-05-20T20:04:47.162Z weinre:    WeinreClientCommands.getExtensions(["c-3::2"
])
2014-05-20T20:04:47.165Z weinre:    Inspector.populateScriptObjects(["c-3::3"])
2014-05-20T20:04:47.168Z weinre:    Console.setConsoleMessagesEnabled([true,null
])
2014-05-20T20:04:47.171Z weinre:    CSS.getSupportedCSSProperties(["c-3::4"])
2014-05-20T20:04:47.174Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.176Z weinre: GET /c-3 200 [response]
2014-05-20T20:04:47.178Z weinre:    WeinreClientEvents.sendCallback(["c-3::2",[[
]]])
2014-05-20T20:04:47.191Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.191Z weinre: POST /c-3 [request]
2014-05-20T20:04:47.192Z weinre:    WeinreClientCommands.registerClient(["c-3::5
"])
2014-05-20T20:04:47.194Z weinre:    WeinreClientCommands.getTargets(["c-3::6"])
2014-05-20T20:04:47.196Z weinre:    WeinreClientCommands.getClients(["c-3::7"])
2014-05-20T20:04:47.203Z weinre: -----------------------------------------------
---
2014-05-20T20:04:47.204Z weinre: GET /c-3 200 [response]
2014-05-20T20:04:47.207Z weinre:    WeinreClientEvents.sendCallback(["c-3::5",{"
channel":"c-3","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.1
68.1.74"}])
2014-05-20T20:04:47.209Z weinre:    WeinreClientEvents.serverProperties([{"httpP
ort":"8080","boundHost":"-all-","verbose":"true","debug":"true","readTimeout":"5
","true":"true","deathTimeout":"15","staticWebDir":"C:\\Users\\nb14696\\AppData\
\Roaming\\npm\\node_modules\\weinre\\web","version":"2.0.0-pre-HH0SN197"}])
2014-05-20T20:04:47.212Z weinre:    WeinreClientEvents.clientRegistered([{"chann
el":"c-3","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192.168.1.
74"}])
2014-05-20T20:04:47.214Z weinre:    WeinreClientEvents.sendCallback(["c-3::6",[[
]]])
2014-05-20T20:04:47.218Z weinre:    WeinreClientEvents.sendCallback(["c-3::7",[[
{"channel":"c-1","id":"anonymous","hostName":"192.168.1.74","remoteAddress":"192
.168.1.74"},{"channel":"c-2","id":"anonymous","hostName":"192.168.1.74","remoteA
ddress":"192.168.1.74"},{"channel":"c-3","id":"anonymous","hostName":"192.168.1.
74","remoteAddress":"192.168.1.74"}]]])
2014-05-20T20:04:55.128Z weinre: -----------------------------------------------
---
2014-05-20T20:04:55.129Z weinre: GET /c-3 200 [response]
2014-05-20T20:04:55.130Z weinre:    WeinreClientEvents.clientUnregistered(["c-1"
])
2014-05-20T20:04:57.140Z weinre: -----------------------------------------------
---
2014-05-20T20:04:57.144Z weinre: GET /c-3 200 [response]
2014-05-20T20:04:57.144Z weinre:    WeinreClientEvents.clientUnregistered(["c-2"
])
2014-05-20T20:04:59.286Z weinre: -----------------------------------------------
---
2014-05-20T20:04:59.287Z weinre: POST /c-3 [request]
2014-05-20T20:04:59.287Z weinre:    Inspector.setSearchingForNode([false,"c-3::8
"])





but i don´t understand it :(


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre

---
You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/UsjDmYbzss4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Mueller

unread,
May 20, 2014, 4:31:53 PM5/20/14
to wei...@googlegroups.com
Nothing obvious from that log, sorry.  Looks like you connected 1-3 times during that session (the c-1, c-2, c-3 ids).

I don't think I'm going to be able to help further.  Again, there's something happening that is breaking the connection with weinre.  You aren't loading a different HTML file in the original HTML file anywhere, are you?

I'm not sure what the other options are for debugging the app, without weinre, as I'm not familiar with WP.  I assume you can use `alert()` anyway?  Is there a `console.log()` function available where you can look at?

Sara Silva

unread,
May 20, 2014, 4:44:03 PM5/20/14
to wei...@googlegroups.com
really bad... :(  i will try with a empty project, to see if works and if the problem is from my web app....
Now i am trying this
http://blogs.msdn.com/b/visualstudioalm/archive/2014/04/04/diagnosing-mobile-website-issues-on-windows-phone-8-1-with-visual-studio.aspx
 i found it now....didn´t see before, maybe it works......i will see

Thanks a lot :D


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre

---
You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/UsjDmYbzss4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jaakko Karhu

unread,
Jul 25, 2014, 9:33:42 AM7/25/14
to wei...@googlegroups.com
I'm also having a problem with connecting my Windows Phone 7 to Weinre. My computer has one of those 4g data sticks I use for connection and I use my computer as hotspot, where my phones are connected. My iPhone and Android phone are connecting to Weinre nicely, but Windows Phone doesn't. Could the data stick cause the problem?

I'm also getting this error message: "Unable to set value of the property '__original': object is null or undefined" on line 1569. More detailed info at StackOverflow: http://stackoverflow.com/questions/24945567/why-doesnt-windows-phone-7-8-connect-to-weinre

Thank You in advance!

Patrick Mueller

unread,
Jul 25, 2014, 1:12:37 PM7/25/14
to wei...@googlegroups.com
On Friday, July 25, 2014 6:33:42 AM UTC-7, Jaakko Karhu wrote:
I'm also having a problem with connecting my Windows Phone 7 to Weinre. My computer has one of those 4g data sticks I use for connection and I use my computer as hotspot, where my phones are connected. My iPhone and Android phone are connecting to Weinre nicely, but Windows Phone doesn't. Could the data stick cause the problem?

I'm also getting this error message: "Unable to set value of the property '__original': object is null or undefined" on line 1569. More detailed info at StackOverflow: http://stackoverflow.com/questions/24945567/why-doesnt-windows-phone-7-8-connect-to-weinre

Thank You in advance!

So you're using the 4g data stick with iphone, android and windows phone, and it can connect with everything but windows phone?

You can try using the URL to the weinre script you put in your HTML file, to try to access the weinre server directly in your browser, to see what happens.  Remove the path from the URL, and just view the weinre home page.  There is also a link to a sample on from there, you can try, to make sure it's not something in your app.

w/r/t __original  - and from follow-on comments elsewhere issues with console - I think something in window's console must have changed recently, which makes it harder for us to hook it.  Sorry, we'll have to see what we can do.  I believe this is a dup of this bug:

Jaakko Karhu

unread,
Jul 25, 2014, 5:23:13 PM7/25/14
to wei...@googlegroups.com
So, just to be more clear: my computer is connected with mobile network stick. I've shared the connection through wi-fi. All my phones (iOS, Android, WP) are connected to the wi-fi, but only Windows Phone has connection problems.


You can try using the URL to the weinre script you put in your HTML file, to try to access the weinre server directly in your browser, to see what happens.  Remove the path from the URL, and just view the weinre home page.  There is also a link to a sample on from there, you can try, to make sure it's not something in your app.

I'm not sure if I understand this part, I'm sorry. Do you mean, that I should enter my.ip.goes.here:8080 to my mobile browser? If so following happens:

iOS and Android goes to Weinre server home
Windows Phone 7.8 says: Internet Explorer Mobile doesn't support this address type. Can't show the page (that's translated from Finnish, so don't know what the error message is _exactly_ in English)

Thank you for your assistance. I'm not very experienced with this kind of stuff (I'm front end dev), but is there something I can do what would help you figure this out?

Jaakko Karhu

unread,
Jul 25, 2014, 5:24:29 PM7/25/14
to wei...@googlegroups.com
Oh I wish I could edit my posts in Google groups:



So, just to be more clear: my computer is connected with mobile network stick. I've shared the connection through wi-fi. All my phones (iOS, Android, WP) are connected to the wi-fi, but only Windows Phone has connection problems.

So WP connects to the network and internet, but not Weinre.

Patrick Mueller

unread,
Jul 25, 2014, 7:43:50 PM7/25/14
to wei...@googlegroups.com
so, "my.ip.goes.here:8080" where "my.ip.goes.here" is 4 numbers separated by dots, right?  An ip address.  You could try that same thing, but with "http://" in front of it, like: "http://my.ip.goes.here:8080", but it sort of sounds like one of two things:

- Windows phone won't let you use URLs where the hostname is an ip address; perhaps a security thing?
- the routing between all these things isn't being resolved correctly on the phone; again, could be a security thing, or could be some kind of networking issue

I assume you are running your own weinre server; you could try using a public one - I run one here:


Make sure you use an "id" fragment, so your debug session isn't shared with the world; more info on that here:

Jaakko Karhu

unread,
Jul 27, 2014, 5:32:00 PM7/27/14
to wei...@googlegroups.com
Yes, by my.ip.goes.here I mean my ip address.

I'll try things you listed when I get back to civilization and I don't need to use that data stick anymore... I'll let you know how it works out.

Thank you for your help,

Jaakko Karhu
Free coder, free human
-----------------------------------------


--

Arci

unread,
Oct 3, 2014, 5:19:10 AM10/3/14
to wei...@googlegroups.com
I'm encountering an (almost) exactly the same problem as Sara! The only difference is mine won't connect at all on Weinre even just for a few seconds. I'm also using Nokia Lumia 925 with WP8.1. I'm running Weinre on Mac with Chrome as my debug client. If I try to access my app via the Windows phone's IE browser, I am able to detect the app on Weinre without any problems. However, if I open the actual installed Windows app (not via the browser), I can't see my app listed on Weinre. My firewall is off and I'm used my IP address on the required script tag to make sure my app will see my Weinre server. My Mac and Windows phone are also connected under 1 network.

Anyone here who was able to find a solution on this?

Thank you very much!

Patrick Mueller

unread,
Oct 3, 2014, 7:50:47 AM10/3/14
to wei...@googlegroups.com
Sorry, I don't know anything about running an app on a Windows Phone.  I guess this is an app that uses some kind of "web view" for it's UI, like an Apache Cordova app - or it IS an Apache Cordova app?

If the "app" runs fine in a browser, but not as an app, I'd guess that there may be some function not available when you're running as an app.  Perhaps like XHR.  Do you need to "turn on" permissions like this in some kind of a manifest?

Sara Silva

unread,
Oct 3, 2014, 8:16:15 AM10/3/14
to weinre
Hello,

When I tried use weinre, I found issues and it never worked for me.
My solution was to create a website in VS with the html/js/css files from the WP Web app and run it in simulator, that allow to see DOM and javascript console.

There is some article about it, I never wrote the article I would like to write about it...but is that the idea.

Note: IE allow, using F12, to debug a bit using the app like in WP, but did not liked, I found differences.

--
--
From the weinre Google Group -- http://groups.google.com/group/weinre

---
You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/UsjDmYbzss4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arci

unread,
Oct 30, 2014, 7:11:25 AM10/30/14
to wei...@googlegroups.com
Yes, I'm using PhoneGap. Not sure about turning on some permissions on the manifest file. I haven't seen anyone suggest it yet. Will check that out. But I thought I only need to add the script tag on the index.html file?
Reply all
Reply to author
Forward
0 new messages