Skip to content
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

Enhancing the vscode development experience #1219

Merged
merged 4 commits into from
Nov 26, 2023

Conversation

cyshallchan
Copy link
Contributor

@cyshallchan cyshallchan commented Nov 6, 2023

  • Development containers add additional plugins for using vscode GUI debugging functionality;
  • Upgrade the glibc version for using the relevant vscode plugins.

Upgrade glibc version for using the vadimcn.vscode-lldb plugin in vscode
Add additional plugins to enable the GUI debugging feature in vscode
"bmalehorn.shell-syntax",
"llvm-vs-code-extensions.vscode-clangd",
"vadimcn.vscode-lldb",
"ms-vscode.cpptools"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不是包括在 "ms-vscode.cpptools-extension-pack", 里面了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确实是的,没注意,我改一下。

"bmalehorn.shell-syntax"
"bmalehorn.shell-syntax",
"llvm-vs-code-extensions.vscode-clangd",
"vadimcn.vscode-lldb",
Copy link
Collaborator

@yyuuttaaoo yyuuttaaoo Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个工具比vscode自带的debug功能更强吗?我感觉内置的就可以用GUI debug了。lldb这个东西的问题是好像国内下载不下来,会报错

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个工具比vscode自带的debug功能更强吗?我感觉内置的就可以用GUI debug了。lldb这个东西的问题是好像国内下载不下来,会报错

你是说llvm-vs-code-extensions.vscode-clangd 这个插件吗?这个插件主要用于语法解析,跳转等,配合compile_commands.json 文件比微软的那个强太多。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关于clangd下载问题,这个可以自己去别的地方找,然后拷贝到容器内,然后更改插件配置
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeLLDB我感觉也很吃力,都是单独下载.vsix才安装成功的。

@yyuuttaaoo
Copy link
Collaborator

这样吧,因为这个操作相对比较复杂,也不是每个人都需要的,是不是可以考虑把文件提交到.devcontainer/devcontainer.json.lldb,配套一个说明放到开发指南里?
如果这个后面发现大家都觉得弄成默认更好的话,我们可以考虑在开发镜像里把难下载的内容集成一下,再弄成默认。你觉得如何

@cyshallchan
Copy link
Contributor Author

这样吧,因为这个操作相对比较复杂,也不是每个人都需要的,是不是可以考虑把文件提交到.devcontainer/devcontainer.json.lldb,配套一个说明放到开发指南里? 如果这个后面发现大家都觉得弄成默认更好的话,我们可以考虑在开发镜像里把难下载的内容集成一下,再弄成默认。你觉得如何

你的意思是把相关插件的离线文件包以及所需的二进制放到.devcontainer目录下吗?

@yyuuttaaoo
Copy link
Collaborator

这样吧,因为这个操作相对比较复杂,也不是每个人都需要的,是不是可以考虑把文件提交到.devcontainer/devcontainer.json.lldb,配套一个说明放到开发指南里? 如果这个后面发现大家都觉得弄成默认更好的话,我们可以考虑在开发镜像里把难下载的内容集成一下,再弄成默认。你觉得如何

你的意思是把相关插件的离线文件包以及所需的二进制放到.devcontainer目录下吗?

意思是先不弄成默认的。需要的可以copy .devcontainer/devcontainer.json.lldb .devcontainer/devcontainer.json

…ironment

- Restore the original devcontainer.json file and place the modified content in a separate file named devcontainer.json.lldb.
@yyuuttaaoo yyuuttaaoo merged commit 79ced83 into alibaba:main Nov 26, 2023
@cyshallchan
Copy link
Contributor Author

@yyuuttaaoo 我这边文档是在原来开发文档中新增段落,还是另外写一个文档呢?

@yyuuttaaoo
Copy link
Collaborator

@yyuuttaaoo 我这边文档是在原来开发文档中新增段落,还是另外写一个文档呢?

不长的话新增一段就好了

@yyuuttaaoo yyuuttaaoo added this to the v2.0 milestone Jan 11, 2024
@yyuuttaaoo yyuuttaaoo added the enhancement Feature enhancement label Jan 11, 2024
@yyuuttaaoo yyuuttaaoo added build Build related improvements and removed enhancement Feature enhancement labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants