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
I on a mac book air M1, with
Mojo 24.2, and lldb-1500.0.404.7,
and when I run various combinations of --no-optimization or --debug-level <doc listed value> and --debug-info-language <doc listed value>,
like, mojo build --debug-level line-tables --no-optimization --debug-info-language Mojo mojo_test1.mojo mojo debug mojo_test1
I get warnings that my exec was compiled with optimizations,
Current executable set to 'XXXXXXXXXX/mojotesting/mojo_test1' (arm64).
(lldb) breakpoint set --name main
Breakpoint 1: where = mojo_test1`stdlib.builtin._startup.__mojo_main_prototype(...) + 4 at _startup.mojo:132:4, address = 0x0000000100058a38
(lldb) r
Process 9355 launched: 'XXXXXXXXXX/mojotesting/mojo_test1' (arm64)
Process 9355 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100058a38 mojo_test1`stdlib.builtin._startup.__mojo_main_prototype(...) at _startup.mojo:132:4 [opt]
warning: mojo_test1 was compiled with optimization - stepping may behave oddly; variables may not be available.
and as the warning suggests, stepping does behave oddly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I on a mac book air M1, with
Mojo 24.2, and lldb-1500.0.404.7,
and when I run various combinations of
--no-optimization
or--debug-level <doc listed value>
and--debug-info-language <doc listed value>
,like,
mojo build --debug-level line-tables --no-optimization --debug-info-language Mojo mojo_test1.mojo
mojo debug mojo_test1
I get warnings that my exec was compiled with optimizations,
and as the warning suggests, stepping does behave oddly.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions