|
1 |
| -# Debugging in Chrome |
| 1 | +# Debuggen in Chrome |
2 | 2 |
|
3 |
| -Before writing more complex code, let's talk about debugging. |
| 3 | +Bevor wir komplexeren Code schreiben, lass uns über Debuggen sprechen. |
4 | 4 |
|
5 |
| -All modern browsers and most other environments support "debugging" -- a special UI in developer tools that makes finding and fixing errors much easier. |
| 5 | +Alle modernen Browser und die meisten anderen Umgebungen unterstützen "debuggen" -- eine spezielle UI in den Entwicklerwerkzeugen, welches es einfacher macht Fehler zu finden und zu beheben. |
6 | 6 |
|
7 |
| -We'll be using Chrome here, because it's probably the most feature-rich in this aspect. |
| 7 | +Wir werden hier Chrome verwenden, da es wahrscheinlich das Funktionsreichste in diesem Bereich ist. |
8 | 8 |
|
9 |
| -## The "sources" pane |
| 9 | +## Der "sources" Bereich |
10 | 10 |
|
11 |
| -Your Chrome version may look a little bit different, but it still should be obvious what's there. |
| 11 | +Deine Chrome Version sieht vielleicht etwas anders aus, aber es sollte trotzdem offensichtlich sein, was da ist. |
12 | 12 |
|
13 |
| -- Open the [example page](debugging/index.html) in Chrome. |
14 |
| -- Turn on developer tools with `key:F12` (Mac: `key:Cmd+Opt+I`). |
15 |
| -- Select the `sources` pane. |
| 13 | +- Öffne die [Beispielseite](debugging/index.html) in Chrome. |
| 14 | +- Öffne die Entwicklerwerkzeugen mit `key:F12` (Mac: `key:Cmd+Opt+I`). |
| 15 | +- Öffne den `sources` Bereich. |
16 | 16 |
|
17 |
| -Here's what you should see if you are doing it for the first time: |
| 17 | +Folgendes sollten Sie sehen, wenn Sie dies zum ersten Mal machst: |
18 | 18 |
|
19 | 19 | 
|
20 | 20 |
|
21 |
| -The toggler button <span class="devtools" style="background-position:-168px -76px"></span> opens the tab with files. |
| 21 | +Die Schaltfäche <span class="devtools" style="background-position:-168px -76px"></span> öffnet die Registerkarte mit den Dateien. |
22 | 22 |
|
23 |
| -Let's click it and select `index.html` and then `hello.js` in the tree view. Here's what should show up: |
| 23 | +Wir klicken darauf und wählen `index.html` aus und danach `hello.js` in der Baumansicht. Hier ist, was erscheinen sollte: |
24 | 24 |
|
25 | 25 | 
|
26 | 26 |
|
27 |
| -Here we can see three zones: |
| 27 | +Hier können wir 3 Bereiche erkennen: |
28 | 28 |
|
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. |
| 29 | +1. Der **Ressourcen Bereich** listet HTML, JavaScript, CSS und andere Dateien auf, einschließlich Bilder die in der Seite eingebunden. |
| 30 | +2. Der **Source Bereich** zeigt den Source Code. |
| 31 | +3. Der **Information und Kontroll Bereich** ist für das Debuggen, wir werden ihn bald erkunden. |
32 | 32 |
|
33 |
| -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. |
| 33 | +Jetzt können Sie auf die selbe Schaltfläche <span class="devtools" style="background-position:-200px -76px"></span> erneut klicken um die Ressourcen Liste zu verstecken und dem Code platz zu schaffen. |
34 | 34 |
|
35 | 35 | ## Console
|
36 | 36 |
|
|
0 commit comments