Skip to content

Commit

Permalink
point at cowboy_req:reply/4 line for setting a breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jul 3, 2022
1 parent 0cbf049 commit 6e3a646
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ In another terminal, make sure you can still `curl -i localhost:8080` and get
a reply.

In one more terminal, start up `hx`. Open up `src/dapper_serve.erl` and jump
down to line 8. Open the debug menu with `<space>d` and bring up the launch
down to the line where we call `cowboy_req:reply/4`:

```erlang
Req = cowboy_req:reply(200,
```

Open up the debug menu with `<space>d` and bring up the launch
templates with `l`. Select the "Existing Erlang Node" template we created
earlier and input the values for `NodeName`, `Cookie`, and `Working Directory`.
I used `dapper@mango`, `dapper_cookie`, and the default value (just hit
Expand Down

0 comments on commit 6e3a646

Please sign in to comment.