You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/debug-JavaScript-code.md
+21-9Lines changed: 21 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ In a model-driven app viewed within a web browser, you can use developer tools t
23
23
Model-driven apps viewed using mobile apps on Android, or the Windows desktop app require some additional steps. See:
24
24
25
25
-[Debug JavaScript in mobile apps on Android](#debug-javascript-in-mobile-apps-on-android)
26
+
-[Debug JavaScript in mobile apps on iOS](#debug-javascript-in-mobile-apps-on-iOS)
26
27
-[Debug JavaScript in the Windows desktop app](#debug-javascript-in-the-windows-desktop-app)
27
28
28
29
> [!NOTE]
@@ -68,10 +69,7 @@ In this case, the name of the function was incorrect, `openalertDialog` should b
68
69
69
70
While using JavaScript web resources for mobile scenarios, you can use your Android device to debug your mobile-specific code and ensure it works as expected.
70
71
71
-
> [!NOTE]
72
-
> It is not currently possible to debug devices using iOS.
73
-
74
-
To debug JavaScript in mobile apps, you must complete the three steps below:
72
+
To debug JavaScript in mobile apps on Android, you must complete the three steps below:
75
73
76
74
### 1. Configure your device
77
75
@@ -88,13 +86,8 @@ To debug JavaScript in mobile apps, you must complete the three steps below:
88
86
89
87
1. In the mobile app, go to the list of Power Apps and select on the menu button.
90
88
1. Make sure that the toggle **Enable remote debugging for model-driven apps** is on.
91
-
92
-
:::image type="content" source="media/field-service-mobile-app-settings.png" alt-text="Field service mobile app settings":::
93
-
94
89
1. When enabling this option, there's a confirmation dialog. Select **Confirm**.
@@ -107,6 +100,25 @@ To debug JavaScript in mobile apps, you must complete the three steps below:
107
100
108
101
More information: [Microsoft Edge: Remotely debug Android devices](/microsoft-edge/devtools-guide-chromium/remote-debugging/)
109
102
103
+
## Debug JavaScript in mobile apps on iOS
104
+
105
+
You can use Safari on a Mac to debug JavaScript web resources on iOS.
106
+
107
+
To debug JavaScript in mobile apps on iOS, you must complete the three steps below:
108
+
109
+
### Configure the mobile application
110
+
111
+
1. In the mobile app, go to the list of Power Apps and select on the menu button.
112
+
1. Make sure that the toggle **Enable remote debugging for model-driven apps** is on.
113
+
114
+
## Debug from your Mac
115
+
116
+
1. Connect your iPhone or iPad to your Mac.
117
+
1. Launch Safari on your Mac.
118
+
1. In the Develop menu, find your connected iPhone or iPad, and then look for Power Apps or Field Service.
119
+
120
+
More information: [Inspecting iOS and iPadOS | Apple Developer Documentation](https://developer.apple.com/documentation/safari-developer-tools/inspecting-ios)
121
+
110
122
## Debug JavaScript in the Windows desktop app
111
123
112
124
To debug JavaScript on Windows, you must first install the prerequisite applications.
0 commit comments