pub unsafe extern "C" fn wasm_runtime_start_debug_instance_with_port(
exec_env: wasm_exec_env_t,
port: i32,
) -> u32Expand description
Start debug instance based on given execution environment. Note: The debug instance will be destroyed during destroying the execution environment, developers don’t need to destroy it manually. If the cluster of this execution environment has already been bound to a debug instance, this function will return true directly. If developer spawns some exec_env by wasm_runtime_spawn_exec_env, don’t need to call this function for every spawned exec_env as they are sharing the same cluster with the main exec_env.
@param exec_env the execution environment to start debug instance @param port the port for the debug server to listen on. 0 means automatic assignment. -1 means to use the global setting in RuntimeInitArgs.
@return debug port if success, 0 otherwise.