Confirmed users
699
edits
| Line 358: | Line 358: | ||
mkdir testjs | mkdir testjs | ||
cd testjs | cd testjs | ||
wget https://bugzilla.mozilla.org/attachment.cgi?id= | wget https://bugzilla.mozilla.org/attachment.cgi?id=480264 -O - > testjs.py | ||
mkdir js | mkdir js | ||
cp $objdir/js/src/js \ | cp $objdir/js/src/js \ | ||
| Line 387: | Line 387: | ||
To debug a particular test, use the newly-added <code>js -g</code> option, which has jsshell sleep for 30 seconds on startup, and then attach with gdb using the instructions above. | To debug a particular test, use the newly-added <code>js -g</code> option, which has jsshell sleep for 30 seconds on startup, and then attach with gdb using the instructions above. | ||
adb shell LD_LIBRARY_PATH="/data/local/js" /data/local/js/js -g -j -e "const platform='linux2'; const libdir='/data/local/js/trace-test/lib/';" -f /data/local/js/trace-test/lib/prolog.js -f /data/local/js/trace-test/tests/basic/testComparisons.js | adb shell LD_LIBRARY_PATH="/data/local/js" /data/local/js/js -g 30 -j -e "const platform='linux2'; const libdir='/data/local/js/trace-test/lib/';" -f /data/local/js/trace-test/lib/prolog.js -f /data/local/js/trace-test/tests/basic/testComparisons.js | ||
# attach using gdb instructions for your device | # attach using gdb instructions for your device | ||