Skip to content

Commit 1957aa4

Browse files
committed
flow
1 parent 07fae32 commit 1957aa4

File tree

1 file changed

+3
-3
lines changed
  • exercises/04.debugging/02.solution.debugger

1 file changed

+3
-3
lines changed

exercises/04.debugging/02.solution.debugger/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Debugger
22

3-
Using debugger allows me to step through my test wherever and whenever I need to. It would be really helpful to pause after my test marks a cell in the `<TicTacToe />` component. I can do that by placing a `debugger` statement after the corresponding actions in the test:
3+
Using the debugger allows me to step through my test wherever and whenever I need to. However, it would be really helpful to pause after my test marks a cell in the `<TicTacToe />` component. I can do that by placing a `debugger` statement after the corresponding actions in the test:
44

55
```tsx filename=tic-tac-toe.browser.test.tsx nonumber nocopy highlight=5,8,11
66
test('places cross marks in a horizontal line', async () => {
@@ -28,10 +28,10 @@ Every `debugger` statement _creates a breakpoint_. Once the JavaScript engine re
2828

2929
## `--inspect-brk` vs `--inspect`
3030

31-
One more noteworthy thing it the flags we are using to create a debugging process, specifically, the `--inspect-brk` flag.
31+
One more noteworthy thing are the flags we are using to create a debugging process, specifically, the `--inspect-brk` flag.
3232

3333
You may provide both `--inspect` and `--inspect-brk` flags to Vitest, but they behave differently. `--inspect-brk` will make Vitest _automatically add a breakpoint before every `render()`_, while `--inspect` will not.
3434

3535
## What's next?
3636

37-
With the debugging configured around out test suite, it's time to explore how you can get even more value out of your newly-found time stopping superpowers.
37+
With debugging configured around our test suite, it's time to explore how you can get even more value out of your newly-found time stopping superpowers.

0 commit comments

Comments
 (0)