[swift-users] libswiftCore.dylib was compiled with optimization - stepping may behave oddly;

Dmitri Gribenko gribozavr at gmail.com
Sat Aug 27 16:17:52 CDT 2016


On Sat, Aug 27, 2016 at 2:12 PM, David Liu <david.yang.liu at gmail.com> wrote:
> Hi Dimitri,
>
> So i have built using ./utils/build-script -R --debug-swift-stdlib how ever
> the REPL no longer has line numbers and i can not set a breakpoint via `:b`
> and am unable to get to lldb to set breakpoints.
> Thanks again for your help.

This build does not include LLDB, only the components that I mentioned:

> This will build the compiler, the standard library, and SDK overlays.

Add '--lldb' if you need the debugger.  (Note that you'd need to start
the REPL from the LLDB build dir, or install everything.  Running
'swift' from the build directory will always run the integrated REPL
without LLDB.)

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list