question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running lldb debugger from bottom toolbar

See original GitHub issue

Brief Issue Summary

When clicking on ‘Debug’ from the bottom toolbar the lldb debugger fails to start with an error in the debug console. Pressing F5 however, will launch the debugger correctly.

Expected Behavior

This used to work in previous versions.

CMake Tools Log

DEBUG CONSOLE log:

Starting: “/usr/bin/lldb” --interpreter=mi lldb: unrecognized option `–interpreter=mi’ error: unknown or ambiguous option Usage: …

Platform and Versions

  • Operating System: macOS 10.12.6
  • CMake Version: 3.20.2
  • VSCode Version: 1.25.1
  • CMake Tools Extension Version: 1.1.1
  • Compiler/Toolchain: clang 9.0.0

Other Notes/Information

launch.json: “version”: “0.2.0”, “configurations”: [ { “name”: “(lldb) Launch”, “type”: “cppdbg”, “request”: “launch”, “program”: “${workspaceFolder}/service/app”, “args”: [], “stopAtEntry”: false, “cwd”: “${workspaceFolder}/service”, “environment”: [], “externalConsole”: false, “MIMode”: “lldb”, } ]

$ lldb --version lldb-900.0.64 Swift-4.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

21reactions
FelikZcommented, Dec 11, 2018

@vector-of-bool hi, 1.1.3 does not solve it automatically for me. I am using this workaround at the moment:

    "cmake.debugConfig": {
        "stopAtEntry": false,
        "MIMode": "lldb",
        "miDebuggerPath": "/Users/felikz/.vscode/extensions/ms-vscode.cpptools-0.20.1/debugAdapters/lldb/bin/lldb-mi",
        "logging": {
                "trace": true,
                "engineLogging": true,
                "traceResponse": true
        }
    },
5reactions
rnorton1commented, Aug 6, 2018

Wouldnt you ultimately want to integrate it with the existing launch system configuration(s) rather than generating your own on the fly? Or as a quick fix, maybe you could take a stab at the debugger from the compiler being used?

The debugger on the tool bar is a nice feature. I think it would be worth expanding on to cater for all configurations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - The LLDB Debugger
First you must make sure that your source files were compiled with debug information. Typically this means passing -g to the compiler when...
Read more >
VSCode+LLDB debugging not working properly in Vagrant ...
The hovering debug toolbar of VSCode appeared, but there is a constantly running progress bar (see below). The whole debug process is stuck....
Read more >
Error Debugging in C++ with VS Code - Rollbar
Once an application has been created, select the “Run and Debug” icon on the left toolbar to initialize debug mode. Initializing Debug Mode....
Read more >
Stepping through code and inspecting variables to isolate bugs
Xcode debugger toolbar, showing the show or hide debug area button, ... As you step through your app, inspect variables relevant to your...
Read more >
Debugging Swift code with LLDB - Medium
Fancy Xcode Debugger UI shows you all available information without ... with e -O -- or simply using alias po like in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found