Debugger showing the wrong value

Environment Information:

Hardware
Macbook Pro 16-inch
MacOS Catalina 10.15.6

Software
Rust Compiler Version:

  • rustc 1.45.0 (5c1f21c3b 2020-07-13)

Rust LLDB Version(Not using gdb):

  • lldb-1103.0.22.10
  • Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)

IDE:

  • CLion 2020.1.2
  • Build #CL-201.7846.88, built on June 3, 2020
  • Runtime version: 11.0.7+10-b765.53 x86_64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • macOS 10.15.6

LLDB Version(bundled with IDE):

  • 9.0.1

C Compiler Info:

  • Apple clang version 11.0.3 (clang-1103.0.32.62)
  • Target: x86_64-apple-darwin19.6.0
  • Thread model: posix
  • InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

C++ Compiler Info:

  • Apple clang version 11.0.3 (clang-1103.0.32.62)
  • Target: x86_64-apple-darwin19.6.0
  • Thread model: posix
  • InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Just wondering if anyone else has run into this while debugging rust code.

I would expect the value shown for test in the variables section to be core::cmp::Ordering::Greater but instead its core::cmp::Ordering::Equal.

The output from running the program is Too big! as expected - the debugger just isn't showing the correct value that the variable actually holds.

Has anyone seen this with other IDEs or environments? Or is there just something wrong with my debugger or setup?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.