llvm-project/lldb
Greg Clayton 4017d86df9 When there are variable errors, display an error in VS Code's local variables view.
After recent diffs that enable variable errors that stop variables from being correctly displayed when debugging, allow users to see these errors in the LOCALS variables in the VS Code UI. We do this by detecting when no variables are available and when there is an error to be displayed, and we add a single variable named "<error>" whose value is a string error that the user can read. This allows the user to be aware of the reason variables are not available and fix the issue. Previously if someone enabled "-gline-tables-only" or was debugging with DWARF in .o files or with .dwo files and those separate object files were missing or they were out of date, the user would see nothing in the variables view. Communicating these errors to the user is essential to a good debugging experience.

Differential Revision: https://reviews.llvm.org/D134333
2022-09-29 10:55:16 -07:00
..
bindings [lldb] Use SWIG_fail in python-typemaps.swig (NFC) 2022-09-16 08:25:01 -07:00
cmake [CMake] Avoid `LLVM_BINARY_DIR` when other more specific variable are better-suited, part 2 2022-09-14 15:48:58 -04:00
docs [lldb][test] 1 - Don't do test-replication for gmodules debug_info variant 2022-09-26 19:54:24 +01:00
examples [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
include/lldb [NFC] Add header documentation to the SBError::GetCString() to clarify ownwership of the returned string. 2022-09-29 10:54:31 -07:00
packages/Python/lldbsuite [lldb][test] 1 - Don't do test-replication for gmodules debug_info variant 2022-09-26 19:54:24 +01:00
resources
scripts
source [lldb] Fix deprecation warnings for hasValue and getValue in mac-only code paths 2022-09-28 20:12:32 -04:00
test When there are variable errors, display an error in VS Code's local variables view. 2022-09-29 10:55:16 -07:00
third_party/Python/module [lldb] Remove uses of six module (NFC) 2022-08-11 19:06:15 -07:00
tools When there are variable errors, display an error in VS Code's local variables view. 2022-09-29 10:55:16 -07:00
unittests Include <cmath> before using std::pow() 2022-09-28 17:35:35 -07:00
utils Fix a bug in lldb-dotest that was uncovered by setting no value for dotest_args_str. 2022-08-31 18:00:18 -07:00
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt lldb: Disable unittests if llvm_gtest target does not exist 2022-08-10 16:56:08 -07:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py