码迷,mamicode.com
首页 > 其他好文 > 详细

rust环境配置

时间:2021-04-29 12:07:59      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:安装   bsp   get   als   ram   插件   folder   json   UNC   

安装cargo

curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | sh

 

vscode插件

ext install rust-lang.rust
ext install vadimcn.vscode-lldb

 

调试配置

launsh.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "win_debug",
      "type": "cppvsdbg",
      "request": "launch",
      "program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}.exe",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceRoot}",
      "environment": [],
      "externalConsole": true
    },
    {
      "name": "linux_debug",
      "type": "lldb",
      "request": "launch",
      "program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}",
      "args": [],
      "cwd": "${workspaceRoot}"
    }
  ]
}

支持断点调试

rust环境配置

标签:安装   bsp   get   als   ram   插件   folder   json   UNC   

原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/14715883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!