I am debugging app with cordova and I have always wondered if there was a way to launch googles device inspect as soon as the app starts running on the device.
This screen is familier to most but just wondering if there is a more efficient way of opening the inspect for the web-view without having to wait for app to install then launching the inspector and lastly hitting refresh to get the get the network information.
So some call back like:
cordova run --device OS --launch device-inspect
答案 0 :(得分:1)
GapDebug,它似乎只是chrome inspect的一个包装器,承诺这样的功能:
GapDebug检测到应用终止并重新启动,例如在应用更新期间,并自动将应用与之前的调试会话重新连接。当应用程序在您的设备上关闭时,请快速恢复调试。
取自features site ...
答案 1 :(得分:1)
据我所知,没有。
如果您对代码进行了更改,则必须在设备上编译和安装应用,否则您将无法获得最新版本。
如果我没有弄错路,那么" Inspect"作品是通过附加到一个正在运行的过程,你只能开始"听"在创建过程之后。
或者当@Phonolog消化时,使用另一个调试器