Skip to content

Commit f38e27f

Browse files
committed
Formatting
1 parent 546a8b9 commit f38e27f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/recipes/developing-and-testing/debug-safe-app.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The exact instructions will depend on your browser, but essentially it simply in
6363
## I'm using VS Code
6464
VS Code allows "full stack" debugging i.e. both the client and server. Prerequisites that you should install:
6565

66-
#### 0. Install Prerequisites
66+
### Install Prerequisites
6767

6868
* **Install** either [Google Chrome](https://www.google.com/chrome/) or [Microsoft Edge](https://www.microsoft.com/en-us/edge): Enables client-side debugging.
6969
* **Configure your browser** with the following extensions:
@@ -73,22 +73,20 @@ VS Code allows "full stack" debugging i.e. both the client and server. Prerequis
7373
* [Ionide](https://marketplace.visualstudio.com/items?itemName=Ionide.Ionide-fsharp): Provides F# support to Code.
7474
* [C#](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp): Provides .NET Core debugging support.
7575

76-
#### Debug the Server
76+
### Debug the Server
7777

7878
1. Click the debug icon on the left hand side, or hit `ctrl+shift+d` to open the debug pane.
79-
8079
2. In the bar with the play error, where it says "No Configurations", use the dropdown to select ".NET 5 and .NET Core". In the dialog that pops up, select "Server.Fsproj: Server"
81-
8280
3. Hit F5
8381

8482
The server is now running. You can use the bar at the top of your screen to pause, restart or kill the debugger
8583

86-
#### 5. Debug the Client
84+
### Debug the Client
8785

8886
1. Start the Client by running `dotnet fable watch -o output -s --run npx vite` from `<repo root>/src/Client/`.
8987
2. Open the Command Palettek using `ctrl+shift+p` and run `Debug: Open Link`.
9088
3. When prompted for a url, type `http://localhost:8080/`. This will launch a browser which is pointed at the URL and connect the debugger to it.
91-
4. You can now set breakpoints in by opening files via the "Loaded Scrips" tab in the debugger; setting breakpoints in files opened from disk does NOT work.
89+
4. You can now set breakpoints in your F# code by opening files via the "Loaded Scrips" tab in the debugger; setting breakpoints in files opened from disk does NOT work.
9290

9391
> If you find that your breakpoints aren't being hit, try stopping the Client, disconnecting the debugger and re-launching them both.
9492

0 commit comments

Comments
 (0)