{"id":45269,"date":"2023-12-14T18:36:52","date_gmt":"2023-05-10T10:53:30","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/"},"modified":"2024-05-04T13:33:23","modified_gmt":"2024-05-04T05:33:23","slug":"45269-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/","title":{"rendered":""},"content":{"rendered":"<p>VSCode\u3067rust\u306e\u30c7\u30d0\u30c3\u30b0\u3063\u3066\u3067\u304d\u308b\u306e\u304b\u306a\uff1f\u3063\u3066\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u7528\u7684\u306b\u4f7f\u3048\u308b\u304b\u306f\u4eca\u5f8c\u306e\u79c1\u306b\u304b\u304b\u3063\u3066\u3044\u308b\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<h2>\u672c\u984c<\/h2>\n<p>\u30c7\u30d0\u30c3\u30ac\u306fcodelldb\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u5c11\u3057\u53e4\u3044\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\nhttps:\/\/qiita.com\/84zume\/items\/377033ab6b6aee2a68d7<\/p>\n<p>\u3069\u3046\u3084\u3089cargo\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u308b\u3068\u304b\u306a\u308a\u697d\u306b\u30c7\u30d0\u30c3\u30b0\u3067\u304d\u308b(launch.json\u3092\u81ea\u52d5\u751f\u6210\u3057\u3066\u304f\u3060\u3055\u308b)\u307f\u305f\u3044\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u306fcargo\u3092\u4f7f\u3063\u3066\u306a\u3044\u74b0\u5883\u3067\u3084\u308a\u305f\u304b\u3063\u305f\u306e\u3067\u81ea\u5206\u3067launch.json\u3092\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u624b\u52d5\u3067\u3084\u308b\u4e88\u5b9a\u3067\u3057\u305f\u304ctasks.json\u3092\u4f7f\u3048\u3070\u81ea\u52d5\u5316\u3067\u304d\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>launch.json<\/h3>\n<pre class=\"post-pre\"><code>{\r\n    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"type\": \"lldb\",\r\n            \"request\": \"launch\",\r\n            \"name\": \"Rust for compiled files\",\r\n            \"program\": \".\/${fileBasenameNoExtension}\",\r\n            \"args\": [],\r\n            \"cwd\": \"${workspaceFolder}\",\r\n            \"preLaunchTask\": \"rust_build\",\r\n            \"postDebugTask\": \"rm_file\"\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306frustc\u3067\u884c\u3046\u3093\u3067\u3059\u304c(\u306e\u3061\u306e&#8217;tasks.json&#8217;\u306b\u8a18\u8f09)\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\npretask\u3068posttask\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb(\u547c\u3073\u65b9\u304c\u308f\u304b\u3089\u306a\u3044)\u306e\u524a\u9664\u3092\u6307\u5b9a\u3057\u3066\u307e\u3059\u3002\u53c2\u8003\u8cc7\u65992\u304b\u3089\u305d\u306e\u307e\u307e\u6301\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>tasks.json<\/h3>\n<pre class=\"post-pre\"><code>{\r\n    \"version\": \"2.0.0\",\r\n    \"tasks\": [\r\n        {\r\n            \"type\": \"shell\",\r\n            \"label\": \"rust_build\",\r\n            \"command\": \"rustc\",\r\n            \"args\": [\r\n                \"${file}\",\r\n                \"-g\"\r\n            ],\r\n            \"group\": \"build\", \r\n            \"presentation\": {\r\n                \"reveal\": \"never\"\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"shell\",\r\n            \"label\": \"rm_file\",\r\n            \"command\": \"rm\",\r\n            \"args\": [\r\n                \"-rf\",\r\n                \"${fileBasenameNoExtension}\",\r\n            ],\r\n            \"group\": \"build\",\r\n            \"presentation\": {\r\n                \"reveal\": \"never\"\r\n            }\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<p>2\u3064\u306etask\u3067\u69cb\u6210\u3055\u308c\u3066\u307e\u3059\u3002\u4e0a\u304crustc\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u4e0b\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u524a\u9664\u3067\u3059\u3002rustc\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b-g\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u30c7\u30d0\u30c3\u30b0\u306e\u60c5\u5831\u3092\u542b\u3081\u3066\u304f\u308c\u308b\u305d\u3046\u3067\u3059\u3002\u3053\u308c\u304c\u306a\u3044\u3068breakpoint\u304c\u4f7f\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h2>\u3057\u3081<\/h2>\n<p>\u3053\u308c\u3067debugger\u3092\u3064\u304b\u3063\u3066breakpoint\u3067\u6b62\u307e\u3063\u305f\u308a\u3001\u5909\u6570\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u666e\u6bb5\u306fpython\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3068\u3001lldb\u306e\u3053\u3068\u3092\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u76f8\u307e\u3063\u3066\u3044\u307e\u3044\u3061\u4f7f\u3044\u3053\u306a\u305b\u3066\u306a\u3044\u3067\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u5909\u6570\u306e\u4e2d\u8eab\u306f\u898b\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u4e00\u65e6\u76ee\u6a19\u9054\u6210\u3068\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u5f8c\u3082\u4f7f\u3046\u306a\u3089\u30b3\u30de\u30f3\u30c9\u3092\u899a\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u53c2\u8003\u8cc7\u6599<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>https:\/\/qiita.com\/84zume\/items\/377033ab6b6aee2a68d7<\/ol>\n<\/li>\n<\/ol>\n<p>https:\/\/qiita.com\/keitean\/items\/56a7e37577a6b05d0a81<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308btask\u3092\u8ffd\u52a0\u3057\u3068\u304f\u306e\u306f\u7d50\u69cb\u3044\u3044\u306a\u3068\u601d\u3044\u307e\u3057\u305f\uff01<br \/>\nhttps:\/\/doc.rust-lang.org\/rustc\/command-line-arguments.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VSCode\u3067rust\u306e\u30c7\u30d0\u30c3\u30b0\u3063\u3066\u3067\u304d\u308b\u306e\u304b\u306a\uff1f\u3063\u3066\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u7528\u7684\u306b\u4f7f\u3048\u308b\u304b\u306f\u4eca\u5f8c\u306e\u79c1 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45269","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"VSCode\u3067rust\u306e\u30c7\u30d0\u30c3\u30b0\u3063\u3066\u3067\u304d\u308b\u306e\u304b\u306a\uff1f\u3063\u3066\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u7528\u7684\u306b\u4f7f\u3048\u308b\u304b\u306f\u4eca\u5f8c\u306e\u79c1 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-10T10:53:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T05:33:23+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-10T10:53:30+00:00\",\"dateModified\":\"2024-05-04T05:33:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/","og_locale":"zh_CN","og_type":"article","og_description":"VSCode\u3067rust\u306e\u30c7\u30d0\u30c3\u30b0\u3063\u3066\u3067\u304d\u308b\u306e\u304b\u306a\uff1f\u3063\u3066\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u7528\u7684\u306b\u4f7f\u3048\u308b\u304b\u306f\u4eca\u5f8c\u306e\u79c1 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-10T10:53:30+00:00","article_modified_time":"2024-05-04T05:33:23+00:00","author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-10T10:53:30+00:00","dateModified":"2024-05-04T05:33:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45269-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45269"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45269\/revisions"}],"predecessor-version":[{"id":98620,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45269\/revisions\/98620"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}