Skip to content

Commit

Permalink
Merge pull request #312 from Shopify/emily/debug-pipeline
Browse files Browse the repository at this point in the history
Add launch.json config to debug Sorbet pipeline
  • Loading branch information
egiurleo authored Oct 29, 2024
2 parents 6ff11c3 + 2919698 commit 0cd6d8f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,29 @@
"${env:BAZEL_EXEC_ROOT}": "${workspaceFolder}",
},
},
{
"type": "lldb",
"request": "launch",
"name": "Debug Sorbet pipeline in LLDB",
"program": "${workspaceFolder}/bazel-bin/main/sorbet",
"args": ["--parser=prism", "${input:file_path}"],
"preLaunchTask": "Build with Prism",
"stopOnEntry": false,
"sourceMap": {
"${env:BAZEL_EXEC_ROOT}": "${workspaceFolder}",
},
},
],
"inputs": [
{
"id": "test_name",
"type": "promptString",
"description": "Enter the test name, e.g. case for running test/prism_regression/case.rb",
},
{
"id": "file_path",
"type": "promptString",
"description": "Enter the path to the file to typecheck, e.g. test/prism_regression/case.rb",
}
]
}

0 comments on commit 0cd6d8f

Please sign in to comment.