-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 有些环境下使用launch.json 无法启动调试 #304
Labels
bug
Something isn't working
Comments
我想提供下 codelldb 的配置模板: {
"type": "lldb", // 需安装 CodeLLDB 插件
"request": "launch",
"name": "LLDB",
"program": "${workspaceFolder}/${defaultBuildTask}/bin/observer",
"cwd": "${workspaceFolder}/${defaultBuildTask}/",
"args": [
// 指定配置文件
"-f",
"${workspaceFolder}/etc/observer.ini",
// 以cli的方式启动observer, 不需要客户端
"-P",
"cli",
// 以 socket 方式启动
// "-s",
// "miniob.sock"
// 以TCP方式启动
// "-p",
// "6789",
// 是否启用 mvcc 事务
// "-t",
// "mvcc",
],
// 启动时是否打开调试控制台
"internalConsoleOptions": "neverOpen",
// 是否每次启动前重新构建
"preLaunchTask": "build_debug",
}, |
你的配置相当赞👍🏻 |
根据@zhaoyiping 的建议,gdb的调试文件增加下面的配置 "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "Set Disassembly Flavor to Intel", "text": "-gdb-set disassembly-flavor intel", "ignoreFailures": true } ] |
在容器环境中调试时,因为配置文件中有"externalConsole: True"配置项导致点击调时按钮没有反应,去掉就正常了,请参考帖子: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
有些环境下,但是具体是哪个环境不知,猜测极可能是Windows+Docker,无法使用当前的launch.json启动调试程序,据反馈去掉externalConsole配置项,或者此配置项改为FALSE即可。
另外,鉴于环境的多样性,建议将lauch.json 改成示例配置文件,比如 lauch.json.example,让使用者主动修改配置来使用。
ref #302
The text was updated successfully, but these errors were encountered: