---
title: "手机浏览器web应用调试"
author: "qlqllu"
date: "2013-08-12T12:58:36Z"
tags: []
categories: ["Web前端"]
slug: "web"
draft: false
lastmod: "2013-08-12T12:58:36Z"
id: 1923398
url: "https://qlqllu.iteye.com/blog/1923398"
---

1\. Install weinre: [http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html](http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html)

```
npm -g install weinre
```

2\. Run weinre:  weinre options

     weinre --boundHost hostname/IP --httpPort 8081

3\. Add a script tag into web page:

    &lt;script src="http://a.b.c:8081/target/target-script-min.js"&gt;&lt;/script&gt;

4\. Access http://a.b.c:8081/client to debug app.