Search Unity

WebGL exception debugging

Discussion in 'Web' started by imodev, Apr 14, 2021.

  1. imodev

    imodev

    Joined:
    Nov 26, 2019
    Posts:
    2
    Hi,

    I am using Unity 2020.4.30f1.

    When I compile the game I am working on, in anything else (EDITOR, iOS, Android, etc.), but WebGL, everything works fine.

    When I start the game in the browser (Chrome, Firefox - doesn't matter), WebGL throws an exception (visible in the browser's dev tools console), but I see no values of the offending stack frame's variables, and there are also no line #s (just zeros) in the stack to guide me more specifically.

    I tried using:

    https://www.khronos.org/webgl/wiki/Debugging

    , but it doesn't seem to work.

    When I try to compile WebGL with the "Development Build" option checked, I get the following somewhere in the middle of building, and the compilation fails.

    Code (CSharp):
    1. Failed running "C:\Program Files\Unity\Hub\Editor\2018.4.30f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity\Hub\Editor\2018.4.30f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"C:\source\GameName\unity_project\Assets\..\Temp\emcc_arguments.resp"