Breakpoints not hit when debug in VSCode #1735
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Replaces this with steps to repro your issue.
[==========] 780 tests from 14 test suites ran. (107 ms total)
Environment:
Expected Behavior
Describe what you expected would happen.
breakpoints can be hit when debug in VSCode
Actual Behavior
Describe what actually happened.
breakpoints not work when debug in VSCode
Link to Code
If you have some code that maintainers can clone/test for themselves, bugs can be resolved much faster. Please paste a link here.
When applicable, use this fiddle to post a web repro.
This path hasn’t been super well tested compared to building on Mac and using lldb.
I’m guessing it’s likely the tool chain used to build the binary will dictate the debugger. E.g. running CMake from visual studio command prompt will build with msvc, but if you build with mingwin/GCC you might need to use gdb.
Yes, you're correct. I changed the compiler from mingwin to MSVC, the breakpoints worked. However I also did some workarounds like close treating warnings as errors to pass building.