Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Debug C program in VS Code on Mac M1 #31

Open
davideuler opened this issue Sep 21, 2022 · 0 comments
Open

Debug C program in VS Code on Mac M1 #31

davideuler opened this issue Sep 21, 2022 · 0 comments

Comments

@davideuler
Copy link
Owner

davideuler commented Sep 21, 2022

1.Install the Plug-in: CodeLLDB in Visual Studio Code.

2.Update the content of launch.json in .vscode on the workspace.
Then you can debug the compiled executable in Visual Studio Code.

{
    // 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",
            "program": "/Users/david/6-class/rest/rest_service.out",
            "args": [],
            "cwd": "${workspaceFolder}"
        }
    ]
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant