Confirmed users
1,345
edits
Nnethercote (talk | contribs) No edit summary |
Nnethercote (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
From a Bourne-style shell, do this: | From a Bourne-style shell, do this: | ||
LD_PRELOAD=$OBJDIR/dist/ | LD_PRELOAD=$OBJDIR/dist/bin/libdmd.so \ | ||
LD_LIBRARY_PATH=$OBJDIR/dist/ | LD_LIBRARY_PATH=$OBJDIR/dist/bin/ \ | ||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | DMD=1 \ # or replace the '1' with one or more DMD options (see below) | ||
<command> | <command> | ||
Line 26: | Line 26: | ||
If you want to run under gdb, do this: | If you want to run under gdb, do this: | ||
LD_PRELOAD=$OBJDIR/dist/ | LD_PRELOAD=$OBJDIR/dist/bin/libdmd.so \ | ||
LD_LIBRARY_PATH=$OBJDIR/dist/ | LD_LIBRARY_PATH=$OBJDIR/dist/bin/ \ | ||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | DMD=1 \ # or replace the '1' with one or more DMD options (see below) | ||
gdb --args <command> | gdb --args <command> | ||
Line 74: | Line 74: | ||
Start the browser like this: | Start the browser like this: | ||
DYLD_INSERT_LIBRARIES=$OBJDIR/dist/ | DYLD_INSERT_LIBRARIES=$OBJDIR/dist/bin/libdmd.dylib \ | ||
LD_LIBRARY_PATH=$OBJDIR/dist/ | LD_LIBRARY_PATH=$OBJDIR/dist/bin/ \ | ||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | DMD=1 \ # or replace the '1' with one or more DMD options (see below) | ||
<command> | <command> | ||
Line 81: | Line 81: | ||
If you want to run under lldb, do this: | If you want to run under lldb, do this: | ||
DYLD_INSERT_LIBRARIES=$OBJDIR/dist/ | DYLD_INSERT_LIBRARIES=$OBJDIR/dist/bin/libdmd.dylib \ | ||
LD_LIBRARY_PATH=$OBJDIR/dist/ | LD_LIBRARY_PATH=$OBJDIR/dist/bin/ \ | ||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | DMD=1 \ # or replace the '1' with one or more DMD options (see below) | ||
lldb -- <command> | lldb -- <command> | ||
Line 191: | Line 191: | ||
Start b2g like this: | Start b2g like this: | ||
LD_PRELOAD=$OBJDIR/dist/ | LD_PRELOAD=$OBJDIR/dist/bin/libdmd.so \ | ||
LD_LIBRARY_PATH=$OBJDIR/dist/ | LD_LIBRARY_PATH=$OBJDIR/dist/bin/ \ | ||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | DMD=1 \ # or replace the '1' with one or more DMD options (see below) | ||
$OBJDIR/dist/bin/b2g -profile $GAIA/profile-debug | $OBJDIR/dist/bin/b2g -profile $GAIA/profile-debug | ||
Line 223: | Line 223: | ||
Launch with the following commands (be sure to replace "org.mozilla.fennec" with the app identifier as appropriate; this will usually be org.mozilla.fennec_$USERNAME for a local build). | Launch with the following commands (be sure to replace "org.mozilla.fennec" with the app identifier as appropriate; this will usually be org.mozilla.fennec_$USERNAME for a local build). | ||
adb push $OBJDIR/dist/ | adb push $OBJDIR/dist/bin/libdmd.so /sdcard/ | ||
adb shell am start -n org.mozilla.fennec/.App \ | adb shell am start -n org.mozilla.fennec/.App \ | ||
--es env0 MOZ_REPLACE_MALLOC_LIB=/sdcard/libdmd.so \ | --es env0 MOZ_REPLACE_MALLOC_LIB=/sdcard/libdmd.so \ |