首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >锈蚀调试??没有触及visual studio代码中的任何断点。

锈蚀调试??没有触及visual studio代码中的任何断点。
EN

Stack Overflow用户
提问于 2022-05-04 12:48:58
回答 1查看 517关注 0票数 4

我试图在代码中查看一些断点。我为代码安装了rust-analyzercodelldbnative debug插件,并生成默认的launch.json。调试器似乎没有正确地附加到进程,而是在断点上运行。这可能是一些简单的错误--这是我的launch.json:

代码语言:javascript
复制
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug unit tests in library 'thedrewreport'",
            "cargo": {
                "args": [
                    "test",
                    "--no-run",
                    "--lib",
                    "--package=thedrewreport"
                ],
                "filter": {
                    "name": "thedrewreport",
                    "kind": "lib"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug executable 'thedrewreport'",
            "cargo": {
                "args": [
                    "build",
                    "--bin=thedrewreport",
                    "--package=thedrewreport"
                ],
                "filter": {
                    "name": "thedrewreport",
                    "kind": "bin"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug unit tests in executable 'thedrewreport'",
            "cargo": {
                "args": [
                    "test",
                    "--no-run",
                    "--bin=thedrewreport",
                    "--package=thedrewreport"
                ],
                "filter": {
                    "name": "thedrewreport",
                    "kind": "bin"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        }
    ]
}

下面是正在运行的调试器的视频和已安装的插件的图片

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2022-08-26 02:14:15

尝试删除目标浮标,而不是按F5自动生成和调试。这可能是因为您是从控制台构建的,但是生成时没有调试信息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72113270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档