You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm trying to debug the C code of FFmpeg, I can perform breakpoint debugging, but I'm unable to obtain the list and values of symbolic variables.
#120
platform: macos 14.0
compiler: Apple clang version 15.0.0 (clang-1500.0.40.1)
ffmpeg: 4.4.1 (--enable-debug)
My breakpoints in the Rust code are correct, but once it enters the C code block, although the breakpoint behavior is still fine, it cannot display all the variable lists and variable values in the C code.
I saw this log in the LLVM output: 'warning: test-f3214074073240dc was compiled with optimization - stepping may behave oddly; variables may not be available.'
However, I don't know how to resolve it and seek your help.
The text was updated successfully, but these errors were encountered:
The debuginfo of your FFmpeg libs might have been stripped.
It's highly recommended to build FFmpeg yourself. You can follow the official compilation guide or use the utils/mac_ffmpeg.rs provided in rsmpeg as a shortcut.
After FFmpeg building, set FFMPEG_PKG_CONFIG_PATH to the pkgconfig directory, then recompile your project, and everything should be fine.
Thank you very much. I'm using a self-compiled version of FFmpeg(4.4.1), and when I tried to debug using C++, I didn't find that the aforementioned situation could be normally supported for debugging.
Below are my build options. Can you see any anomalies?
I've double-checked, and I can confirm that I am indeed using debug mode.
This situation is quite strange. It can correctly jump to the line information in the C source code, but it seems unable to obtain variable information through LLVM.
Thank you for your patient reply. I think I can try to see if I encounter this problem in a Linux environment to rule out LLVM-related issues.
platform: macos 14.0
compiler: Apple clang version 15.0.0 (clang-1500.0.40.1)
ffmpeg: 4.4.1 (--enable-debug)
My breakpoints in the Rust code are correct, but once it enters the C code block, although the breakpoint behavior is still fine, it cannot display all the variable lists and variable values in the C code.
I saw this log in the LLVM output: 'warning: test-f3214074073240dc was compiled with optimization - stepping may behave oddly; variables may not be available.'
However, I don't know how to resolve it and seek your help.
The text was updated successfully, but these errors were encountered: