I build the latest version of chromium and v8.Mac 10.15, xcode 11.0
test.html in chromium
<html>
<script>
alert(1);
Math.sin(1);
alert(2);
</script>
</html>
(lldb) b v8::base::ieee754::sin
libv8.dylib was compiled with optimization - stepping may behave oddly; variables may not be available.
Breakpoint 2: where = libv8_libbase.dylib`v8::base::ieee754::sin(double) + 22 at ieee754.cc:2509:3, address = 0x00000001f01c74e6
(lldb) br list
Current breakpoints:
2: name = 'v8::base::ieee754::sin', locations = 1, resolved = 1, hit count = 1
2.1: where = libv8_libbase.dylib`v8::base::ieee754::sin(double) + 22 at ieee754.cc:2509:3, address = 0x00000001f01c74e6, resolved, hit count = 1
3: file = '/Volumes/sakura_T5/chromium/src/v8/src/base/ieee754.cc', line = 2504, exact_match = 0, locations = 0 (pending)
4: file = '/Volumes/sakura_T5/chromium/src/v8/src/base/ieee754.cc', line = 2512, exact_match = 0, locations = 0 (pending)
I find the file in the file list on the xcode left, apply my breakpoints.
but they are pending, only use symbol breakpoint(such as v8::base::ieee754::sin)
when I triggers the breakpoint, it just show assembly instead of source.
Is this a problem with the Chrome compilation option, or other reasons?
I build chromium and v8 by default method.
(autoninja -C out/Default chrome)
I can see the source directly on the lower version of chromium and v8 (such as v8 7.0.1) when trigger breakpoint, so I think this is not a problem with the Mac and xcode version.