在Windows电脑上调试安装在iOS设备上的SAP UI5应用

JerryWang_汪子熙

It is possible to debug a UI5 application running on an iOS device with a windows laptop.

Suppose I have deployed my UI5 application to SAP cloud platform: https://jerrylist.cfapps.eu10...

Now I launch this application in my iPad:

And I would like to debug this UI5 application which is running on iPad with my windows laptop. Here below are detailed steps:

(1) install iTunes https://www.apple.com/cn/itun... so that your iOS device could be recognized by your windows laptop.
(2) Switch on “Web Inspector” in iPad->Settings->Advanced.

(3) Download ios-webkit-debug-proxy-win32 from github.

Extract the .zip file to a folder in your laptop and add this folder to Path environment variable.

(4) Open windows command prompt, type the following command, and you can see that the iPad is successfully connected.

ios_webkit_debug_proxy.exe -f chrome-devtools://devtools/bundled/inspector.html

Access http://localhost:9221, and my iOS device is listed here:

Click the hyperlink “localhost:9222”, then the active Safari page which displays my UI5 application is listed there:

Click the hyperlink, and Chrome development tool window is opened automatically. Now it is ready to debug – for example press the “approve” button in my iPad, and the breakpoint set in the corresponding event handler in my laptop is triggered.
Happy debugging!

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

阅读 166

Jerry Wang的SAP技术专栏
SAP成都研究院开发专家,SAP社区导师,SAP中国技术大使

Jerry 2007年从电子科技大学计算机专业硕士毕业后进入SAP成都研究院工作至今, SAP社区导师,SAP中国技术大使。

620 声望
34 粉丝
0 条评论

Jerry 2007年从电子科技大学计算机专业硕士毕业后进入SAP成都研究院工作至今, SAP社区导师,SAP中国技术大使。

620 声望
34 粉丝
宣传栏