在iOS设备上调试Cordova应用程序:当关闭应用程序或调试器时,Safari崩溃。

时间:2022-04-07 20:44:46

I have a Cordova 4.3.0 app that I'm trying to debug with desktop Safari's web inspector. I can connect and debug fine, but if I quit the app (dismiss from multitasking view, or stop via XCode), Safari crashes. If I try to close the debugging window in Safari instead, Safari crashes. I don't have this issue when debugging the same app in the emulator, only when debugging on device.

我有一个Cordova 4.3.0的应用程序,我正在尝试与桌面Safari的web检查器进行调试。我可以连接和调试好,但如果我退出应用程序(从多任务视图中退出,或者通过XCode停止),Safari崩溃。如果我尝试关闭Safari中的调试窗口,那么Safari会崩溃。在模拟器中调试同一个应用程序时,我没有这个问题,只有在设备调试时才会出现这个问题。

I'm not setting any debugger breakpoints; I'm using Safari to watch the console output, and to occasionally inspect the web app.

我没有设置任何调试器断点;我使用Safari来观察控制台输出,并偶尔检查web应用程序。

Is this a known issue? Anything I need to do to safely close the debugging session?

这是一个已知的问题吗?我需要做什么才能安全地关闭调试会话?

1 个解决方案

#1


0  

You should give GapDebug a try. It's nearly the best debugger for Cordova/Phonegap apps i've ever seen.

你应该试试GapDebug。它几乎是我所见过的Cordova/Phonegap应用程序的最佳调试器。

Hope that i helped you! :-)

希望我帮助了你!:-)

#1


0  

You should give GapDebug a try. It's nearly the best debugger for Cordova/Phonegap apps i've ever seen.

你应该试试GapDebug。它几乎是我所见过的Cordova/Phonegap应用程序的最佳调试器。

Hope that i helped you! :-)

希望我帮助了你!:-)