Skip to content

Commit 07fae32

Browse files
committed
flow
1 parent f284cbc commit 07fae32

File tree

1 file changed

+2
-2
lines changed
  • exercises/04.debugging/02.problem.debugger

1 file changed

+2
-2
lines changed

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

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

3-
Let's craked it up a notch. Observing the rendered DOM is useful, but not as much as being able to _step through_ what our test is doing. For that, we are going to need a `debugger`.
3+
Let's crank it up a notch. Observing the rendered DOM is useful, but not as much as being able to _step through_ what our test is doing. For that, we are going to need a `debugger`.
44

55
In JavaScript, if you place a `debugger` statement anywhere in your code, the engine running that code will pause its execution and let you "look around", then proceed to the next debugger checkpoint, if you have any.
66

@@ -69,7 +69,7 @@ This configuration tells Visual Studio Code how to launch your application (in o
6969

7070
Then, we combine these two tasks in a single `compound` task called `Debug Vitest Browser`.
7171

72-
> 🦉 I am also setting the `env.DEBUG` variable to `'true'` to run my browser tests in a "headfull" mode conditionally. That way, I will see what's going on on the page while debugging my tests. Take a look at <InlineFile file="./vite.config.ts">`vite.config.ts`</InlineFile> to see how that variable is referenced.
72+
> 🦉 I am also setting the `env.DEBUG` variable to `'true'` to conditionally run my browser tests in a "headful" mode. That way, I can see what's going on on the page while debugging my tests. Take a look at <InlineFile file="./vite.config.ts">`vite.config.ts`</InlineFile> to see how that variable is referenced.
7373
7474
Once this is done, you can start your browser tests in a debug mode by openning the "Run and debug" window (Shift+Cmd+D) and run the "Debug Vitest Browser" task from the dropdown at the top:
7575

0 commit comments

Comments
 (0)