Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add vscode config to attach to running golang process (#1392)

Yilong Li705b68739f10
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000000..2d579bde04
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,12 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Attach to Process",
+ "type": "go",
+ "request": "attach",
+ "mode": "local",
+ "processId": 0
+ }
+ ]
+}
diff --git a/scripts/.air.toml b/scripts/.air.toml
index dcf6f31a8e..7c29b3a3b2 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -3,7 +3,7 @@ tmp_dir = ".air"
[build]
bin = "./.air/bytebase --port 8080 --frontend-port 3000 --data ."
- cmd = "go build -o ./.air/bytebase ./bin/server/main.go"
+ cmd = "go build -gcflags=all=\"-N -l\" -o ./.air/bytebase ./bin/server/main.go"
delay = 1000
exclude_dir = [".air", "vendor", "frontend", "docs"]
exclude_file = []