cordova - adb logcat for Phonegap on Chrome://inspect/device? -


i wondering if possible if run adb logcat chrome inspect/device phonegap app?

i not sure how adb logcat works, or have use simulator?

the logcat (systemlog) of android system, runs on android devices long device turned on. every application , every process on smartphone able write messages inside log.

but logcat mcuh more that. complex , full of features, tike time tell every feature. i'm going tell generall information.


log

command

log.i(“my name john”); 

result

my name john 

log-levels

there different loglevels. separated following categories:

  • debug
  • error
  • info
  • warn

normaly decide on own, kind of messages want see inside logcat adding needed command codebase.


max log size

the maximum size of log varies device device. example on galaxy note 800kb. google says, standard @ 64kb. maximum length of 1 line in logcat confined 4kb


is there way, debug application without eclipse/android studio?

yes, there great tool - called gapdebug. gapdebug google chrome "extension" , integrates it. when started app developing complicated, gapdebug seems work charme (at least debugging :-) ).

if choose give gapdebug try recommend install cordova / phonegap console plugin can installed via cordova plugin add cordova-plugin-console.

when plugin installed, can trigger console outputs via

console.log('my name john'); 

also warnings can triggered with

console.warn('my name john'); 

all of these outputs posted inside gapdebug console. comfortable way of debugging hybrid applications on platform.

gapdebug work real device simulator.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -