Modern web debugging tools are very good. I remember a time when they didn’t exist and debugging even the simplest problems was an absolute nightmare. A while back I introduced a number of people to an output method called logpoints. console.log
You can display messages without having to modify the source files. Another good breakpoint type is XHR/.fetch
Breakpoints allow you to pause execution when an AJAX call is made. Let’s take a look at XHR/fetch
breakpoint!
To set XHR/fetch
To create a breakpoint, open your browser’s developer tools and[ソース]Click on the tab. This tab is the same tab that opens for other breakpoints. under XHR/fetch
To select an accordion item, click the large “+” button.Empty text is displayed input
:
in that text input
enter the string you want to split all XHR/ into.fetch
I call out to you. For example, if you want to take a break anytime, fetch
I received a request so I will enter it davidwalsh.name
:
In the above case, XHR/fetch
The request breakpoint stops execution because the request has been made. https://davidwalsh.name/url-canparse
.You can step through and step into like regular breakpoints, and you can[呼び出しスタック]You can view panes to see how the execution reached a particular point.
XHR/fetch
Breakpoints are another great way to debug your web app. The more you rely on dynamic websites where content changes frequently, the more you need debugging. fetch
A phone is required. Enjoy debugging!
Camera and video control with HTML5
Client-side APIs on mobile and desktop devices are rapidly providing the same API. Of course, mobile devices were the first to have access to some of these APIs, but they are gradually making their way to the desktop as well. One of those APIs is the getUserMedia API…
WebSockets and Socket.IO
My favorite web technology is quickly becoming the WebSocket API. WebSockets provide a welcome alternative to the AJAX technology we’ve been using for the past few years. This new API provides an efficient way to push messages from the client to the server.
Image data URI using PHP
If you mess around with page markup like I do, you’ve probably seen data URIs used in the src attribute of images. Instead of providing a traditional address to the image, the image file data is Base64 encoded and packed within the src attribute. That way you can save money…