JaggyGauran

Freelance developer, and designer

Output console.log to the Terminal

I've been studying Cordova and Phonegap for the past couple of days and I've been having issues with debugging from the command line.

While lurking around, I've found a solution using jsConsole to pass the command from the mobile device to the web application. It was kinda useful but it takes me away from the workflow with switching windows and all that.

So, I made the creatively named remote-console to pass through the data from any device to your console.

Usage

Clone the repo

$ git clone https://github.com/jaggyspaghetti/remote-console

Install dependencies using composer

$ composer install

Start the server

$ php server.php

Now you'll get something like this

iTerm

Inject the script to your Markup and all console logs will output to your terminal window.

I kinda use this mostly for Phonegap and Cordova development but it might be useful in web development as well.

Feel free to fork it and do some optimization. Thanks!

https://github.com/jaggyspaghetti/remote-console