Jump 2 Geekland

  • Home
  • Contact
  • Disclaimer
  • About Us
  • Privancy
  • Subscribe

Try Debugging Cordova Apps with DebugGap

by Anonymous 20:53 cordova
Debuggap is a tool to debug cross platform mobile apps. It’s easy to use and get started. All you need to do is download the package, include a JavaScript file and run the app on a device or emulator.
It can debug apps across different mobile platforms and is supported on Windows, Mac & Linux.

Getting Started

To start using DebugGap on your desktop, download the relevant package and unzip it.
Navigate to the unzipped folder and change the access permissions.
1
sudo chmod -Rf 777 ./DebugGap-x.x.x
Run the debug executable.
1
2
cd DebugGap-x.x.x
./DebugGap
On MacOS and Windows there is an Application file in the folder, so double click it to start the debug executable.
You should now see the remote debug screen.

Click connect to listen for clients.

Adding DebugGap to an App

To demonstrate the DebugGap, you can use the Expense Manager app from the Creating an Expense Manager App with Apache Cordova.
First, install cordova.
1
sudo npm install -g cordova
Clone the source code from GitHub.
1
git clone https://github.com/sitepoint-editors/ExpenseManager.git
Navigate to the project directory and add the respective mobile platform. I’m using android.
1
2
cd ExpenseManager
cordova platform add android
From the DebugGap unzipped folder, copy the debuggap.js from the client folder and paste intoExpenseManager/www/js . Include debuggap.js in ExpenseManager/www/index.html as script reference.
1
<script src="js/debuggap.js" type="text/javascript"></script>
Build the cordova project.
1
cordova build
Once the build is complete, run the app on the android emulator.
1
cordova emulate android
You should be able to view the application running in the emulator with a blue spot.

Click on the blue spot and you should be able to see 4 options.
Select config and enter the IP address on which you are running DebugGap. In this case since we are running the app on an emulator, so you need to enter the IP address as 10.0.2.2, port as 8085 and click connect. It will connect to DebugGap listening on the localhost server, port 8085.
Once connected you should be able to see the client in the DebugGap listener screen.
You can have multiple clients connected to DebugGap.
To get started with debugging the app, double click on the client in the debug listener window and you will see a window similar to the chrome developer console. Return to the mobile app, click on the blue spot and select inspect. Click on any element in the mobile app and it should be reflected on the elements tab in the debugGap listener window.
Clicking on the blue spot provides an option called ‘Nodes’ which shows the DOM elements as nodes. DebugGap has a console which renders access to the mobile browser console for error message debugging.
READ MORE
SHARE :

Bumper Offer

Search This Blog

Translate

Total Pageviews

Blog Archive

Check This New Vids


Powered by Dailymotion

Amazing Vids


Powered by Dailymotion

Popular Posts

  • Best Unblocked Proxy Sites 2015 – Free Proxy Servers List
    How proxy servers works ? If you want to know how proxy sites works then its very simple, it's a 3 step process.. 1 - First ...
  • Best Photoshop plugins 2015
    01.  Kubota Texture Tools Industrial Kubota describe themselves as the 'Mecca' of photo enhancing tools, and this latest in...
  • Best health & fitness iphone apps 2015
    1. FitStar Personal Trainer You no longer have to cough up the big bucks for a personal trainer to get workouts tailored directl...
  • Best Tools For Startups 2015
    1. Domain and Website Management Buying a domain name  Domain.com  – Domains and hosting “GoDaddy – Tried and true. Affordable s...
  • Best eCommerce Tools for Your Website 2015
    eCommerce platforms — 11 platforms to help get your eCommerce website started Choosing your eCommerce platform builder is one of the...
  • Customizing your icons is easier than ever with the latest Action Launcher 3 update
    Action Launcher 3 has been one of our favorite third-party launchers on Android for some time now, and  it’s getting even better. In t...
  • Judge dismisses lawsuit against Apple over undelivered texts to Android devices
    As revealed in a report from  Business Insider , U.S. District Judge Lucy H. Koh  has finally dismissed  [PDF] the lawsuit against Apple...
  • Create pro-quality music on your phone with Noise 5D
    Noise 5D  is a keyboard-style  app on iOS  that makes full use of Apple’s 3D touch to help you create multidimensional music. To c...
  • Apple Releases Mac OS X 10.11 El Capitan Public Beta 2 to Users Worldwide
    As Apple has already published the update on the Mac App Store for users who have the first Public Beta build of Mac OS X 10.11 El Capitan...

Labels

Android ios Google iphone Windows 10 Android app ios apps Microsoft Apple ipad Apple music ios 9 mac Android games adobe facebook hack whatsapp Linux OS X Wordpress chrome extension youtube Apple ios 9 Best Tools Intel Material Design Startups angularjs apps cortana frameworks health apps iphone app ipod javascript movies photoshop torrent tricks twitch windows Advertising App store optimization Apple pay Best Blogger Spinners Blogger Templates Blogger Tricks and tips Computer Tricks and Tips CyanogenMod DIY Hacks Developers Disable Adblocker Ecommerce Education Entrepreneur Features Freelancing sites Game Development Google Adsense Google Developers Google announces Google play HTML 6 Health and Fitness apps Hybrid app development.mobile development Increase boost traffic Infographics MS Excel Make Money Online Responsive theme Service Provider Useful Formula apple siri apple tv atom bing bootstrap cloud cms code coding cordova developer download emoji firefox addon ios games iot ipad games iphone health apps iphone note apps iphone widgets itunes jailbreak jquery linkedin mdl mozilla music nodejs online online marketing photo editing apps php plugins programming project tech testing twitter xcode7 youtube tricks

Template Created By : ThemeXpose . All Rights Reserved.