Native debugger breakpoints no longer work after upgrade to 2021.2
Red breakpoints turn grey (disabled) when I start debugging rust code. Breakpoints were working prior to the upgrade to 2021.2.
IntelliJ IDEA 2021.2 (Ultimate Edition)
Build #IU-212.4746.92, built on July 27, 2021
...
Runtime version: 11.0.11+9-b1504.13 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 3.10.0-1160.31.1.el7.x86_64
GC: ParNew, ConcurrentMarkSweep
Memory: 2023M
Cores: 3
Registry: debugger.watches.in.variables=false, scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins: AceJump (3.8.3), com.github.b3er.idea.plugins.arc.browser (0.23), com.intellij.nativeDebug (212.4746.92), com.jetbrains.darkPurpleTheme (1.2), com.jetbrains.plugins.ini4idea (212.4746.57), net.seesharpsoft.intellij.plugins.csv (2.17.1), name.kropp.intellij.makefile (212.4746.52), org.toml.lang (0.2.151.3997-212), org.jetbrains.plugins.hocon (2021.1.0), Pythonid (212.4746.96), aws.toolkit (1.29-212), org.intellij.scala (2021.2.15), org.rust.lang (0.4.151.3997-212)
Kotlin: 212-1.5.10-release-IJ4746.92
Current Desktop: GNOME
The Rust LLDB tab shows warnings:
warning: (x86_64) /lib64/libssl.so.10 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libcrypto.so.10 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libgssapi_krb5.so.2 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libkrb5.so.3 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libcom_err.so.2 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libk5crypto.so.3 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libz.so.1 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libkrb5support.so.0 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libkeyutils.so.1 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libselinux.so.1 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libpcre.so.1 No LZMA support found for reading .gnu_debugdata section
warning: (x86_64) /lib64/libnss_mdns4_minimal.so.2 No LZMA support found for reading .gnu_debugdata section
Please sign in to leave a comment.
Seems you faced https://youtrack.jetbrains.com/issue/CPP-25415
Please try this solution: https://youtrack.jetbrains.com/issue/CPP-25415#focus=Comments-27-4977701.0-0
Yes, that issue is exactly the problem I'm seeing, but the proposed solution is specific to c++. I haven't been able to find a way to specify the DWARF version for a Rust project.
Thanks Konstantin for pointing me to that youtrack issue. Until the problem with LLDB is solved, I have reverted to IntelliJ 2021.1.3 and downgraded all the plugins. Native debugging then works for Rust projects.
@... in the Rust plugin tracker there is an issue similar to CPP-25415 - https://github.com/intellij-rust/intellij-rust/issues/7258. But, as you can see, it happened in IntelliJ IDEA 2021.1 too.
Please install IntelliJ IDEA 2021.2 (you don't need to uninstall IntelliJ IDEA 2021.1.3, they can be installed side-by-side), enable debugger logging as described here, reproduce the issue and check the resulting idea.log file (`Help | Show Log in ...`). Do you have the "unsupported DW_FORM value: 0x1f" error message in it?
I'm experiencing this issue too in intellij 2021.2, when trying to debug kotlin native code. Downgrading to 2021.1 fixed things for me, but hopefully that's a temporary fix.
Hello, Alex Black! Could you please file an issue at kotl.in/issue for that? If possible, share all details about your environment in it.