Skip to content

Commit 62ba97e

Browse files
committed
add readme for debugging the generator
1 parent 7977507 commit 62ba97e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

codegen/README.MD

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Debugging the generator
2+
3+
To configure VS Code for debugging the generator, specifically visitors, add the following to your `launch.json` in the root of the workspace
4+
5+
```json
6+
{
7+
"version": "0.2.0",
8+
"configurations": [
9+
{
10+
"name": "Debug OpenAI Library Plugin",
11+
"type": "coreclr",
12+
"request": "launch",
13+
"program": "dotnet",
14+
"args": [
15+
"${workspaceFolder}/codegen/dist/generator/Microsoft.TypeSpec.Generator.dll",
16+
"${workspaceFolder}",
17+
"-g",
18+
"OpenAILibraryGenerator"
19+
],
20+
}
21+
]
22+
}
23+
```

0 commit comments

Comments
 (0)