Debug C program in VS Code on Mac M1

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, macos, vscode
Domain
documentation

Research direction

Review the issue's CodeLLDB setup instructions and the .vscode/launch.json example, checking whether the guidance is complete and reproducible for a C program on a Mac M1. Done means documenting a clear, usable debugging setup without user-specific paths.

Written by the indexing model from the issue text.

Description

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}"
        }
    ]
}
Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from davideuler/programming-tips

All issues in davideuler/programming-tips

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.