From 72451855706dbdebae5771749058c9fc2172dffa Mon Sep 17 00:00:00 2001 From: Alec Merdler Date: Thu, 7 Mar 2024 16:44:07 -0500 Subject: [PATCH] Debug migrate command in VSCode Adds a VSCode launch config for debugging the 'migrate' command. --- .vscode/launch.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index cc94352e0f..6f4dec6ab8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,6 +10,18 @@ "serve" ], "envFile": "${workspaceFolder}/.env.local", + }, + { + "name": "Migrate", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/cmd/spicedb/main.go", + "args": [ + "migrate", + "head" + ], + "envFile": "${workspaceFolder}/.env.local", } ] } \ No newline at end of file