Skip to content

Debug C program in VS Code on Mac M1 #31

Description

@davideuler

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}"
        }
    ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions