Skip to content

Commit 70353be

Browse files
committed
translate 03-advanced-svelte/11-debugging into Japanese
1 parent d495682 commit 70353be

File tree

1 file changed

+3
-3
lines changed
  • content/tutorial/03-advanced-svelte/11-debugging/01-debug

1 file changed

+3
-3
lines changed

content/tutorial/03-advanced-svelte/11-debugging/01-debug/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: The @debug tag
33
---
44

5-
Occasionally, it's useful to inspect a piece of data as it flows through your app.
5+
しばしば、アプリを流れるデータを検査するのに便利です。
66

7-
One approach is to use `console.log(...)` inside your markup. If you want to pause execution, though, you can use the `{@debug ...}` tag with a comma-separated list of values you want to inspect:
7+
1つの方法は、マークアップの中で `console.log(....)` を使用することです。しかし、実行を一時停止したい場合は、`{@debug ...}`タグを使用して、検査したい値をカンマで区切ったリストで指定することができます。
88

99
```svelte
1010
{@debug user}
1111
1212
<h1>Hello {user.firstname}!</h1>
1313
```
1414

15-
If you now open your devtools and start interacting with the `<input>` elements, you'll trigger the debugger as the value of `user` changes.
15+
新しく devtools を開いて `<input>` 要素とのやりとりを始めると、`user` の値が変わるとデバッガが動作します。

0 commit comments

Comments
 (0)