Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 933 Bytes

File metadata and controls

21 lines (13 loc) · 933 Bytes

Troubleshooting emscripten related problems:

  1. first thing to try, is reduce optimization to -O0 (see Makefile).
  2. Try -O1
  3. Then "-O2 --closure 0 --minify 0"
  4. Then enable closure (but not minification) - helps to see if how the code is closured/minified. Also see: emscripten-core/emscripten#704

Debugging the AWK program or adding functionality

  1. run make bin and make bin-test to run the AWK program as a native binary executable.
  2. Try running the same AWK script with GNU AWK, and with BusyBox's AWK - to pinpoint if the bug is related to the changes made in this project.
  3. GDB can debug the awk_bin file easily.

Following AWK progress

  1. Enable "NODE_JS_DEBUG" in ./busybox/include/libbb.h to see some progress messages. Add more and re-compile if needed: node_js_debug("something is wrong, i=%d\n", i);

Will work in the binary version, node.js version and web version.