Skip to content

Can't debug on macOS Catalina (LLDB) #3829

@man-jai

Description

@man-jai

Type: Debugger
Input information below

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: macOS 10.14
  • VS Code Version: 1.35.1
  • C/C++ Extension Version: 0.24.0
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

To Reproduce

launch.json
"version":"0.2.0",
"configurations":[ 
   { 
      "type":"cppdbg",
      "request":"launch",
      "name":"Debug",
      "preLaunchTask":"build",
      "program":"${workspaceFolder}/debug/OpenGLTut.out",
      "args":[ 

      ],
      "stopAtEntry":true,
      "cwd":"${workspaceFolder}",
      "environment":[ 

      ],
      "externalConsole":true,
      "MIMode":"lldb",
      "internalConsoleOptions":"openOnSessionStart",
      "showDisplayString":false,
      "logging":{ 
         "trace":true,
         "traceResponse":true,
         "engineLogging":true,
         "programOutput":true,

      }
   }
]
tasks.json
"version":"2.0.0",
"tasks":[ 
   { 
      "type":"shell",
      "label":"build",
      "command":"clang++",
      "args":[ 
         "-g",
         "-std=c++17",
         "-stdlib=libc++",
         "-framework",
         "Cocoa",
         "-framework",
         "OpenGL",
         "-framework",
         "IOKit",
         "-framework",
         "CoreVideo",
         "-L",
         "/usr/local/include/",
         "-lglew",
         "-lglfw3",
         "${workspaceFolder}/src/Application.cpp",
         "-o",
         "${workspaceFolder}/debug/OpenGlTut.out",
         "--debug",

      ],
      "group":{ 
         "kind":"build",
         "isDefault":true
      }
   }
]

Steps to reproduce the behaviour:
debug using the above tasks and launch files

Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.

Metadata

Metadata

Assignees

Labels

bugdebuggerfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions