如何在设备上调试 [英] How to debug on device
问题描述
我有一个Ionic应用程序,我可以使用从Visual Studio 2015启动的Ripple模拟器运行和调试。
I have an Ionic app that I can run and debug using the Ripple emulator launched from Visual Studio 2015.
如果我可以在我的Android设备上运行它在没有调试的情况下启动。
I can also run it on my Android device if I "Start without debugging".
不幸的是,在模拟器上工作的东西在设备上不起作用,所以我需要在设备上进行调试。
Unfortunately, something that works on the emulator doesn't work on the device, so I need to debug on the device.
这是我开始遇到问题的地方。 Visual Studio挂起在设备上安装应用程序...... - 除非我卸载在没有调试的情况下运行时安装的应用程序。
This is where I start hitting problems. Visual Studio hangs at "Installing app on device..." - unless I uninstall the app that was installed when I ran without debugging.
当我这样做时,应用程序运行但它没有遇到任何断点,Visual Studio停止响应。在LAUNCH SUCCESS之后我收到此消息:
When I do that, the app runs but it doesn't hit any breakpoints and Visual Studio stops responding. After "LAUNCH SUCCESS" I have this message:
命令已完成,错误代码为0:cmd / s / c
C:..... \ android\cordova\run.bat --nobuild --device --debug
Command finished with error code 0: cmd /s /c ""C:.....\android\cordova\run.bat --nobuild --device --debug
那么......如何在设备上进行调试?
So...how to get debugging working on the device?
推荐答案
您是否尝试过使用chrome检查器?在安装了应用程序的情况下插入手机,打开它,打开Chrome并输入导航栏 chrome:// inspect
Have you tryied with chrome inspector? Plug your phone with the app installed, open it, open your chrome and type in the nav bar chrome://inspect
这篇关于如何在设备上调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!