You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the components for Haskell debugging based on the Debug Adapter Protocol ([DAP](https://microsoft.github.io/debug-adapter-protocol)).
4
12
5
-
*[`dap/`](dap/): Language and backend independent simple DAP library
6
-
*[`dap-estgi-server/`](dap-estgi-server/): DAP server for External STG Interpreter (DAP-ESTGi)
7
-
*[`dap-estgi-vscode-extension/`](dap-estgi-vscode-extension/): VSCode extension to support Haskell debugging using DAP-ESTGi server
13
+
-[`dap/`](dap/): Language and backend independent simple DAP library
14
+
-[`dap-estgi-server/`](dap-estgi-server/): DAP server for External STG Interpreter (DAP-ESTGi)
15
+
-[`dap-estgi-vscode-extension/`](dap-estgi-vscode-extension/): VSCode extension to support Haskell debugging using DAP-ESTGi server
8
16
9
17
## Overview
10
18
@@ -13,65 +21,93 @@ VSCode offers a nice debugger UI while the debugger features are provided by the
13
21
14
22
```mermaid
15
23
flowchart LR
16
-
subgraph User Interface
17
-
A(VSCode) -.- |Plugin API| B(DAP ESTGi Extension)
18
-
end
19
-
B <-->|DAP via network| C(DAP ESTGi Server)
20
-
subgraph Debugger
21
-
C -.- |HS library API| D(External STG Interpreter)
22
-
end
24
+
subgraph User Interface
25
+
A(VSCode) -.- |Plugin API| B(DAP ESTGi Extension)
26
+
end
27
+
B <-->|DAP via network| C(DAP ESTGi Server)
28
+
subgraph Debugger
29
+
C -.- |HS library API| D(External STG Interpreter)
30
+
end
23
31
24
32
```
25
33
26
34
The `dap-estgi-server` and `dap-estgi-vscode-extension` are application specific components, while the
27
35
`dap` library is designed to be application independent to support any project that needs a simple DAP framework.
28
36
29
37
## Setup
38
+
- Enable `allow breakpoints everywhere` option in VSCode settings.
39
+
40
+
### Run `dap-estgi-extension`
41
+
- Run `(cd dap-estgi-vscode-extension ; npm install)`
42
+
- Open `dap-estgi-vscode-extension` folder by using the `Files/Open Folder` menu.
43
+
- Open the `src/extension.ts` file.
44
+
- Press F5 to run the extension in a new VSCode [Extension Development Host] window.
30
45
31
-
1. VSCode setup
32
-
Enable `allow breakpoints everywhere` option in VSCode settings.
0 commit comments