define: DUK_USE_DEBUG_WRITE introduced: 2.0.0 default: false tags: - debug description: > Macro used for Duktape debug log writes (when DUK_USE_DEBUG is enabled). There's no default provider to avoid a dependency on platform I/O calls. The macro is called like a function with the following prototype: "void DUK_USE_DEBUG_WRITE(long level, const char *file, long line, const char *func, const char *msg)". The "file", "func", and "msg" arguments are non-NULL strings, though NULLs should be handled as good practice (it's ultimately up to duk_config.h whether NULL values are possible). See http://wiki.duktape.org/HowtoDebugPrints.html for more information and examples.