openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
codegen/README.MD
23lines · modecode
| 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 | ``` |