microsoft / microsoft/vscode-cpptools

Unable to start debugging after Run Without Debugging

Open
#8,854 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger duplicate
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Issue Type: Bug

Trying to run a toy example on Debian using clang++.

"miDebuggerPath": "/usr/bin/lldb-mi"

/usr/bin/lldb-mi indeed doesn't exist (what pkg do I need to install?), but a debugger shouldn't be necessary to just run something.

VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.16.0-1-amd64

System Info
Item Value
CPUs Intel(R) Core(TM) i3 CPU 530 @ 2.93GHz (4 x 2946)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.99GB (1.50GB free)
Process Argv --crash-reporter-id 4bd850b3-a2f9-42c9-8c89-3a102309506b
Screen Reader no
VM 0%
Item Value
Remote SSH: debian
OS Linux x64 5.16.0-1-amd64
CPUs Intel(R) Core(TM) i3 CPU 530 @ 2.93GHz (2 x 2945)
Memory (System) 1.89GB (0.11GB free)
VM 100%
Extensions (16)
Extension Author (truncated) Version
better-cpp-syntax jef 1.15.13
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.217.4
remote-ssh ms- 0.70.0
remote-ssh-edit ms- 0.70.0
remote-wsl ms- 0.64.2
doxdocgen csc 1.3.2
EditorConfig Edi 0.16.4
better-cpp-syntax jef 1.15.13
python ms- 2022.0.1814523869
vscode-pylance ms- 2022.2.1
jupyter ms- 2022.1.1201831736
cmake-tools ms- 1.9.2
cpptools ms- 1.8.4
cpptools-extension-pack ms- 1.1.0
cmake twx 0.0.17

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30425749
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30436985
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30433059
pythonvs932:30410667
wslgetstarted:30433507
vsclayoutctrc:30437038
vsrem710cf:30416617
vsbas813:30436447
vscscmwlcmc:30436992
cppdebug:30437093

{
  // 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": [
    
    {
      "name": "clang++ - Build and debug active file",
      "type": "cppdbg",
      "request": "launch",
      "program": "${fileDirname}/${fileBasenameNoExtension}",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${fileDirname}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "lldb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "preLaunchTask": "C/C++: clang++ build active file",
      "miDebuggerPath": "/usr/bin/lldb-mi"
    }
  ]
}

Originally reported @ https://github.com/microsoft/vscode/issues/142961

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing Run Without Debugging with the supplied launch.json configuration on a Remote SSH Debian host, especially when /usr/bin/lldb-mi is absent. Trace how the C/C++ extension handles miDebuggerPath for this action; done means running without debugging does not require the configured debugger.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.