Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4d49e6

Browse files
authored
Merge pull request #373 from brentguf/debugger
Debugger
2 parents 3c832f5 + 65c3bbe commit b4d49e6

File tree

1 file changed

+6
-6
lines changed
  • 1-js/03-code-quality/01-debugging-chrome

1 file changed

+6
-6
lines changed

‎1-js/03-code-quality/01-debugging-chrome/article.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Let's click it and select `index.html` and then `hello.js` in the tree view. Her
2626

2727
Here we can see three zones:
2828

29-
1. **Resources zone** lists html, javascript, css and other files including images that are attached to the page. Chrome extensions may appear here too.
30-
2. **Source zone** shows the source code.
31-
3. **Information and control zone** is for debugging, we'll explore it soon.
29+
1. The **Resources zone** lists HTML, JavaScript, CSS and other files, including images that are attached to the page. Chrome extensions may appear here too.
30+
2. The **Source zone** shows the source code.
31+
3. The **Information and control zone** is for debugging, we'll explore it soon.
3232

3333
Now you could click the same toggler <span class="devtools" style="background-position:-200px -76px"></span> again to hide the resources list and give the code some space.
3434

@@ -44,7 +44,7 @@ For example, here `1+2` results in `3`, and `hello("debugger")` returns nothing,
4444

4545
## Breakpoints
4646

47-
Let's examine what's going on within the code of the [example page](debugging/index.html). In `hello.js`, click at the line number `4`. Yes, right on the `"4"` digit, not on the code.
47+
Let's examine what's going on within the code of the [example page](debugging/index.html). In `hello.js`, click at line number `4`. Yes, right on the `4` digit, not on the code.
4848

4949
Congratulations! You've set a breakpoint. Please also click on the number for line `8`.
5050

@@ -121,7 +121,7 @@ Now it's time to *trace* the script.
121121
There are buttons for it at the top of the right pane. Let's engage them.
122122

123123
<span class="devtools" style="background-position:-7px -76px"></span> -- continue the execution, hotkey `key:F8`.
124-
: Resumes the execution. If there are no additional breakpoints, then the execution just continues and the debugger looses the control.
124+
: Resumes the execution. If there are no additional breakpoints, then the execution just continues and the debugger loses control.
125125

126126
Here's what we can see after a click on it:
127127

@@ -176,7 +176,7 @@ As we can see, there are three main ways to pause a script:
176176

177177
Then we can examine variables and step on to see where the execution goes wrong.
178178

179-
There are many more options in developer tools than covered here. The full manual is at <https://developers.google.com/web/tools/chrome-devtools>
179+
There are many more options in developer tools than covered here. The full manual is at <https://developers.google.com/web/tools/chrome-devtools>.
180180

181181
The information from this chapter is enough to begin debugging, but later, especially if you do a lot of browser stuff, please go there and look through more advanced capabilities of developer tools.
182182

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /