Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.19 KB

compiler_options.md

File metadata and controls

18 lines (13 loc) · 1.19 KB

Options

Name Description Default Value
JSB_MIN_LOG_LEVEL minimum log level Verbose
JSB_DEBUG Debug mode.
It's overwritten in SCsub with the value of DEV_ENABLED by default.
1
JSB_LOG_WITH_SOURCE log with [source filename, line number, function name] 0
JSB_WITH_VARIANT_POOL use a pool allocator for creating variant instances 1
JSB_WITH_DEBUGGER enable to debug with Chrome devtools 1
JSB_WITH_SOURCEMAP translate the js source stacktrace with source map (currently, the .map file must locate at the same filename & directory of the js source) 1
JSB_WITH_STACKTRACE_ALWAYS enable this to let all methods in console print with js stacktrace 0
JSB_WITH_LWS JSB_WITH_LWS must be enabled if JSB_WITH_DEBUGGER is used.
Currently use libwebsockets to handle v8 debugger connection since modules/websocket fail to handshake with devtools.
devtools do not response the upgrade request with a sec-websocket-protocol header which does not apply the handshake requirements of WSLPeer
and the connection will break immediately by devtools if selected_protocol is assigned manually in WSLPeer
1

Go Back