需要sqlite
need sqlite
点击运行
-> 打开/添加配置
会打开.vscode/launch.json
这个文件
在configurations
中添加
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'xlog'",
"cargo": {
"args": [
"build",
"--bin=xlog",
"--package=xlog"
],
"filter": {
"name": "xlog",
"kind": "bin"
}
},
"args": [
"input_str",
"-t type"
],
"cwd": "${workspaceFolder}"
}
在args
里面配置需要的参数(cargo.args
这个是用来构建项目的参数,下面这个args
是运行程序时添加的参数)