erisu commented on code in PR #1315:
URL: https://github.com/apache/cordova-docs/pull/1315#discussion_r1205457337


##########
www/docs/en/dev/guide/next/index.md:
##########
@@ -117,21 +121,24 @@ It's not uncommon to use desktop browsers and device 
simulators/emulators when d
 
 It is, of course, impossible to test on every possible device on the market. 
For this reason, it's wise to recruit many testers who have different devices. 
Although they won't catch every problem, chances are good that they will 
discover quirks and issues that you would never find alone.
 
-# Debugging Cordova apps
+## Debugging Cordova apps
 
 In most cases, debugging Cordova apps is quite straightforward.
 
-## iOS Debugging
+### iOS Debugging
+
+#### Xcode
 
-### Xcode
 With Xcode you can debug the iOS native side of your Cordova application. Make 
sure the Debug Area is showing (View -> Debug Area). Once your app is running 
on the device (or simulator), you can view log output in the debug area. This 
is where any errors or warnings will print. You can also set breakpoints within 
the source files. This will allow you to step through the code one line at a 
time and view the state of the variables at that time. The state of the 
variables is shown in the debug area when a breakpoint is hit. Once your app is 
up and running on the device, you can bring up Safari's web inspector (as 
described below) to debug the webview and JS side of your application. For more 
details refer to the [Apple Debugging 
Support](https://developer.apple.com/support/debugging/) docs.
 
-### Safari Remote Debugging with Web Inspector
+#### Safari Remote Debugging with Web Inspector
+
 With Safari's web inspector you can debug the webview and js code in your 
Cordova application. This works only on macOS. It uses Safari to connect to 
your device (or the simulator) and will connect the browser's dev tools to the 
Cordova application. You get what you expect from dev tools - DOM 
inspection/manipulation, a JavaScript debugger, network inspection, the 
console, and more. Like Xcode, with Safari's web inspector you can set 
breakpoints in the JavaScript code and view the state of the variables at that 
time. You can view any errors, warnings or messages that are printed to the 
console. You can also run JavaScript commands directly from the console as your 
app is running.
 
 To start inspecting, first enable it on device at `Settings > Safari > 
Advanced > Web Inspector`. On your desktop, enable the developer tools from 
`Safari > Preferences > Advanced > Show Develop menu in menu bar`. In the 
`Develop` menu, you will now be able to select the connected device, and the 
app you want to inspect.
 
-## Chrome Remote Debugging
+#### Chrome Remote Debugging
+
 Virtually the same as the Safari version, this works with Android only but can 
be used from any desktop operating system. Once connected, you get the same 
Chrome Dev Tools experience for your mobile applications as you do with your 
desktop applications. Even better, the Chrome Dev Tools have a mirror option 
that shows your app running on the mobile device. This is more than just a view 
- you can scroll and click from dev tools and it updates on the mobile device.
 
 To inspect, simply open up the URL `chrome://inspect` in Chrome on your 
desktop. Here you will see a list of connected devices and inspectable apps. 
Your device must be set up for USB debugging for this to work. Full 
instructions on getting set up can be found at 
[https://developers.google.com/chrome/mobile/docs/debugging](https://developers.google.com/chrome/mobile/docs/debugging).

Review Comment:
   Link redirects to https://developer.chrome.com/docs/devtools/
   
   Need to confirm what should display...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to