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
Currently, to install the debugger extension, download the `.vsix` file from the
42
-
GitHub release artifacts and drag and drop it to the extensions side panel. In
43
-
the future we will release it on the marketplace.
44
-
45
36
# Usage
46
37
47
38
To use the debugger in VSCode, select the debugger tab, select Haskell Debugger,
48
39
and create a `launch.json` file by clicking the debugger settings icon (next to
49
-
the green run button).
40
+
the green run button). Now, it is also supported to just Run a file which
41
+
contains a `main` function.
50
42
51
43
The `launch.json` file contains some settings about the debugger session here.
52
44
Namely:
53
45
54
46
| Setting | Description |
55
47
| --- | --- |
48
+
|`projectRoot`| the full path to the project root. this is typically `${workspaceFolder}`, a value which is interpolated by the editor with the actual path |
56
49
|`entryFile`| the relative path from the project root to the file with the entry point for execution |
57
50
|`entryPoint`| the name of the function that is called to start execution |
58
51
|`entryArgs`| the arguments passed to the `entryPoint`. If the `entryPoint` is `main`, these arguments are passed as environment arguments (as in `getArgs`) rather than direct function arguments. |
@@ -63,8 +56,6 @@ Change them accordingly.
63
56
To run the debugger, simply hit the green run button.
64
57
See the Features section below for what is currently supported.
65
58
66
-
Note: Listing global variables is only supported in GHC versions newer than May 6, 2025
0 commit comments