Ionic/Cordova: How to debug JavaScript codes that require "cordova.js" library in a web-browser -


i developing app androind using ionic framework. app uses cordova medila plugin , use need include:

<script src="cordova.js"></script> 

in html code. required able run code on android, there not cordova.js in www directory , ionic finds in 1 of subfolders when wants build android.

i need debug code , want run javascript line line in chrome, becuase chrome cannot find cordova.js, gives error (like "gap_init:2").

i tried find copy of cordova.js in sub-folder of app belongs android platform , copy www\js folder when tried run html code got strange errors during loading of html file.

my question is: possible debug these applications in chrome? if how? if not, there ides or tools can used debug?

try link chorme inspect, used debug android apps https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -