瀏覽代碼

添加 VSCode 调试配置文件 launch.json

zhch158_admin 2 月之前
當前提交
ca6f844de4
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      .vscode/launch.json

+ 20 - 0
.vscode/launch.json

@@ -0,0 +1,20 @@
+{
+	// 使用 IntelliSense 了解相关属性。 
+	// 悬停以查看现有属性的描述。
+	// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
+	"version": "0.2.0",
+	"configurations": [
+		{
+			"name": "current_file",
+			"type": "debugpy",
+			"request": "launch",
+			"program": "${file}",
+			"console": "integratedTerminal",
+			"cwd": "${fileDirname}",
+			"env": {"PYTHONPATH":"${workspaceFolder};${env:PYTHONPATH}"},
+			"envFile": "${workspaceFolder}/.env",
+			// "args": ["-t", "How can I push a model to the Hub?", "-b", "dashscope", "-m", "openai/qwen-max", "-a", "code"],
+			"justMyCode": false
+		}
+	]
+}