Weinre不工作,要调试? [英] Weinre not working, trying to debug?

查看:99
本文介绍了Weinre不工作,要调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我可能失去了一些东西,但我已经安装在我的Andr​​oid平板电脑的apk文件与脚本

 <脚本SRC =HTTP://本地主机:8080 /目标/目标脚本min.js#匿名>< / SCRIPT>
 

在首部。

我决定尝试运行它之后在本地 http://forums.adobe.com/docs/DOC-2623。我去为localhost:8080和weinre安装了,但我仍然得到同样的事情的目标没有发现

我觉得我缺少的一个步骤,或者我不完全了解如何连接到我的应用程序?

我也尝试过通过build.phonegap.com构建它启用调试模式,然后安装APK然后单击调试,天哪,步骤很不错,很容易,但我不能让它的工作。

我要失去了一些东西,所以我希望有人能帮助我理解我缺少的是什么。

解决:感谢的 @Christian Kuetbach 的下面他的回答帮助,让我万一有人添加了一些东西,但有这个问题

  1. 我确信脚本weinre给你补充的是最后加载的,我把它放在最底层,因为我想一切后,它应该加载。只是这样做是为了确保。

  2. 确认连接到weinre正确,@Christian Kuetbach说, - boundHost -all - ,但我不得不这样输入 weinre --boundHost -all - 也许添加weinre是一个明显的事情,但它可能会造成混乱,所以一定要做到这一点,我对Win8的运行,如果有差别。

解决方案

你是如何开始在Android设备的weinre服务器部分?

我想你会娘家使用你的服务器(你开发计算机)的IP在HTML。

在情况下的Windows 8: https://kb.wisc.edu/page。 PHP?ID = 27309

在上面的IP的例子是 144.92.124.118

 <脚本SRC =htt​​p://144.92.124.118:8080/target/target-script-min.js#anonymous>< / SCRIPT>
 

更新 这只会工作,如果该设备在线,并在同一个网络中的PC和防火墙配置为允许连接和weinre服务器启动的参数 - -boundHost -all -

I think I may be missing something, but I have installed the .apk on my android tablet with the script

<script src="http://localhost:8080/target/target-script-min.js#anonymous"></script> 

in the header.

I decided to try running it locally following http://forums.adobe.com/docs/DOC-2623. I went to "localhost:8080" and weinre is installed, but I still get the same thing "target not found".

I think I am missing a step, or I am not completely understanding how it connects to my app?

I have also tried building it via build.phonegap.com enabling debug mode, then installing the apk then clicking debug, gosh the steps are nice and easy but I can't get it to work.

I have to be missing something, so I hope someone can help me understand what I am missing.

Solved: Thanks to @Christian Kuetbach following his answer helped, let me add a few things just in case someone else has this issue.

  1. I made sure the script weinre gives you to add is loaded last, I put it at the very bottom, because I figured it should load after everything. Just did this to make sure.

  2. Make sure to connect to weinre properly, @Christian Kuetbach says it --boundHost -all- but I had to enter it like this weinre --boundHost -all- maybe adding the weinre is an obvious thing, but it could cause confusion, so make sure to do that I am running on win8 if that makes a difference.

解决方案

How did you start the weinre server part at the android device?

I think you'll nee to use the IP of you server (You Dev-Computer) in the HTML.

In case of Windows 8: https://kb.wisc.edu/page.php?id=27309

In that example above the IP is 144.92.124.118

<script src="http://144.92.124.118:8080/target/target-script-min.js#anonymous"></script>

update This will only work, if the device is online and in the same network as your PC and the firewall is configured to allow connections and weinre server is started with the parameter --boundHost -all-

这篇关于Weinre不工作,要调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆