Breakpoint not stopping in xcode when debug native webrtc for mac

413 views
Skip to first unread message

Kanon

unread,
Jun 23, 2020, 4:49:52 AM6/23/20
to discuss-webrtc
Has someone encountered the same problem, any solution? I have tried all the methods on the StackOverflow, but the breakpoints are still not stopping. I'm going crazy lolllll......

Suman Cherukuri

unread,
Jun 23, 2020, 12:06:32 PM6/23/20
to discuss-webrtc
Have you tried is_debug=true in gn gen args? The default is 'false' meaning the debug symbols are stripped and the build is optimized.

Kanon

unread,
Jun 23, 2020, 9:40:31 PM6/23/20
to discuss-webrtc
I have tried is_debug=true when run gn command. But it seems the breakpoints in .mm files can stop, while other breakpoints in c++ files can't stop.

Finally, I came up a walkaround, use gn to compile the source code for ios instead of mac, the breakpoints in ios project can stop. That's all I can do about the problem.

Byoungchan Lee

unread,
Jun 24, 2020, 1:54:28 AM6/24/20
to discuss-webrtc
You should browse GN files related to strip_absolute_paths_from_debug_symbols or -fdebug-compilation-dir.

Jose Antonio Olivera Ortega

unread,
Sep 17, 2020, 5:04:45 AM9/17/20
to discuss-webrtc
Go and edit src/build/config/compiler/compiler.gni. By default `strip_absolute_paths_from_debug_symbols_default` is true for macOS. Set false for it and rebuild.

chao sheng

unread,
Feb 26, 2021, 4:38:50 AM2/26/21
to discuss-webrtc
add option  "enable_dsyms=true" to address it
Reply all
Reply to author
Forward
0 new messages