I have the following setup :
- I use visual studio 2019 as IDE and build a C++ project
- I use cmake to compile and build my project
- I build everything for linux
- My code has two main folders proj/MyCode and proj/Framework
- I link the Framework as static lib in MyCode
- the -g compilation flag is set
When Im connecting to my linux machine after building and run MyCode using gdb locally everything works fine.
When Im trying to use gdbserver, I can debug MyCode.
When Im trying to remote debug from visual to my linux machine,
I get "Frame not in module" error when Im trying to step into Framework code.
Debugging "MyCode" works fine.
question from:
https://stackoverflow.com/questions/65933117/gdbserver-cant-find-static-lib-cources 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…