问题
When I debug a Cordova app what I constantly do is step through its code inside Chrome's WebInspector. In order to be able to do this, however, I have to wait for the device to become ready in chrome://inspect/#devices
(only then can I click on the appearing link for the started app). But if I do this the inspector will not halt on breakpoints if I am not quick enough. How do experienced Cordova developer tackle this issue?
回答1:
Additionally to frank's comment I just found GapDebug which offers instant debug and, thus, comes close to what I deserve.
来源:https://stackoverflow.com/questions/28046814/how-do-i-step-through-cordova-code-when-the-app-starts