8000 GitHub - NeroProtagonist/vscode-lldb: LLDB Front-End for Visual Studio Code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NeroProtagonist/vscode-lldb

 
 

Repository files navigation

CodeLLDB: a LLDB front end for Visual Studio Code

Features

  • Supports Linux, macOS and Windows (with caveats - see below).
  • Launch processes with configurable stdio redirection.
  • Attach to processes by pid or by name.
  • Scripted custom launch for ultimate flexibility.
  • Function, conditional and regex breakpoints.
  • Disassembly View.
  • LLDB commands and expression evaluation in Debug Console.
  • Configurable result formatting.
  • Display of HTML content.
  • Rust language support.

Please see the Manual for details.

Eye Candy

C++ debugging with data visualization (Howto):
source
Rust debugging:
source

Prerequisites

  • Visual Studio Code 1.9.0.
  • LLDB with Python scripting support on system PATH. (Installing LLDB)

Quick Start

Here's a minimal debug configuration to get you started:

{
    "name": "Launch",
    "type": "lldb",
    "request": "launch",
    "program": "${workspaceRoot}/<my program>",
    "args": ["-arg1", "-arg2"],
}

See also: Debugging in VS Code, the Manual.

Installing LLDB

Linux

On Debian-derived distros (e.g. Ubuntu), run sudo apt-get install python-lldb-x.y, where x.y is the LLDB version.
See this page for installing nightlies.

Note: Some distros install LLDB with a versioned name, e.g. lldb-4.0. In this case you will need to configure LLDB executable name via Workspace Configuration.

MacOS

  • Download and install XCode.
  • Install XCode Command Line Tools by running xcode-select --install

Note

LLDB is incompatible with Brew or MacPorts-installed Python. If you have one installed on your machine, please read this.

Windows

  • Download and install LLVM for Windows.
  • Download and install Python 3.5.x. If you've installed a 64-bit LLVM (not recommended), you will need a 64-bit Python as well.
  • Make sure that both LLDB and Python install directories are on the PATH.

Note

At the moment, LLDB's support of Microsoft PDB debug info format is rather poor. Also, the 64-bit Windows LLDB is known to be buggy.
This means that in practice it's only useful for debugging 32-bit binaries produced by GNU toolchains. This situation will hopefully improve with time.

Be sure to read the Fine Manual!

Please see the troubleshooting page should you have issues with getting the debugger to start.

About

LLDB Front-End for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 73.1%
  • TypeScript 22.7%
  • C++ 2.7%
  • Rust 1.5%
0