diff --git a/site/source/docs/porting/Debugging.rst b/site/source/docs/porting/Debugging.rst index 0dab9ff93215e..a732178d956d2 100644 --- a/site/source/docs/porting/Debugging.rst +++ b/site/source/docs/porting/Debugging.rst @@ -170,7 +170,7 @@ returns the ``what`` function call result. emscripten::function("getExceptionMessage", &getExceptionMessage); }; -This requires using the linker flag ``--bind``. +This requires using the linker flags ``-lembind -sEXPORT_EXCEPTION_HANDLING_HELPERS``. Once such a function has been created, exception handling code in javascript can call it when receiving an exception from WASM. Here the function is used in order to log the thrown exception.