From pmuir at redhat.com Mon Jan 7 11:27:14 2013 Content-Type: multipart/mixed; boundary="===============6676208643830927648==" MIME-Version: 1.0 From: Pete Muir To: aerogear-dev at lists.jboss.org Subject: Re: [aerogear-dev] Debugging your Aerogear Application remotly with Weinre Date: Mon, 07 Jan 2013 16:27:09 +0000 Message-ID: <12030A77-1E6D-49DF-A882-AA1B9001078A@redhat.com> In-Reply-To: 4A60B2B0-D3AE-4E58-9CEB-6EF374ADB1F9@redhat.com --===============6676208643830927648== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I've created a quickstart for running weinre on OpenShift - https://github.= com/pmuir/weinre (it's just weinre with the relevant scripts added for Open= Shift so the server starts automatically). Krishna is going to add this to = the openshift org on github for me. We'll be adding a section to the TicketMonster tutorial on how to use Weinr= e (setup your weinre server on OpenShift, add the script to the app). I thi= nk we could do the same in the kitchensink-html5-mobile's README - document= how to use weinre to debug the quickstart. I don't think we should add it = by default. WDYT? On 2 Jan 2013, at 16:07, Burr Sutter wrote: > We can have more than 1 quickstart for Aerogear :-) > = > There should be one key/core archetype that shows up on JBoss Central - b= ut there can be a dozen quickstarts to focus on different aspects of Aeroge= ar capabilities. = > = > On Jan 2, 2013, at 11:01 AM, Sebastien Blanc wrote: > = >> Sure ! I will do a blog post about Weinre and on how to integrate it n= icely. >> = >> = >> = >> On Wed, Jan 2, 2013 at 4:57 PM, Douglas Campos wrote: >> = >> On 02/01/2013, at 12:15, Kris Borchers wrote: >> = >> > Weinre is an amazing tool. I would say it is much more useful for hybr= id apps as opposed to web apps since, for the most part, you can just run y= our web app in a desktop browser to debug it. There are definitely cases wh= ere testing on the device is useful though and Weinre makes it much easier. >> +1 >> > >> > I would prefer to not add this to the quickstart. I think the extra co= de will mostly just get in the way of someone trying to grok the JS, especi= ally non-JS devs. I would prefer to see this as a blog post/tutorial/articl= e on AeroGear.org instead as the info is very valuable I just think it need= s to be outside of the actual quickstart. >> = >> Indeed, a blog post on weinre would be rad - wanna give it a run sebi? >> +1 >> = >> > >> > Any other thoughts from anyone? >> > >> > On Jan 2, 2013, at 7:58 AM, Sebastien Blanc wr= ote: >> > >> >> Hi, >> >> A few weeks ago, on the IRC channel there was a question about Weinre= . For those who don't know what Weinre is (definition from Weinre's homepa= ge) : >> >> >> >> weinre is a debugger for web pages, like FireBug (for FireFox) and We= b Inspector (for WebKit-based browsers), except it's designed to work remot= ely, and in particular, to allow you debug web pages on a mobile device suc= h as a phone. >> >> >> >> So it's extremely useful and totally in the scope of Aerogear (Web/Hy= brid) which targets mobile development . >> >> It's easy to setup : >> >> >> >> 1. Install the Weinre server , if you have npm : sudo npm -g install = weinre >> >> 2. Start the Weinre server : weinre --httPort 8081 >> >> 3. Instrument your web page to act as a debug target by adding the fo= llowing : >> >>