Web Export - How to include debug Symbols

Godot Version

4.4

Question

I am getting null function or function signature mismatch errors in a Web build. The console errors look like:

(index):153 RuntimeError: null function or function signature mismatch
    at 0c6c5412:0x9c1a9f
    at 0c6c5412:0x9c12d4
    at 0c6c5412:0x2967c19
    at 0c6c5412:0xc8358e
    at 0c6c5412:0x2036f2f
    at 0c6c5412:0xc8358e
    at 0c6c5412:0x91f031
    at 0c6c5412:0x6a721e
    at 0c6c5412:0xc85061
    at 0c6c5412:0x20417f5

It seems that debug symbols are not included in my build, and the error messages are not helpful in finding where the source of the problem actually is. I’ve tried checking the Export With debug checkbox on export, but this doesn’t seem to do anything.

How do I export for web in a way that error messages are human readable?

You can probably use the Godot source to generate a debug build and a .pdb file then start your process with a debugger to load the symbols.

I think debug exports are mainly for debugging scripts. This seems like a native code error, you will need c++ debug symbols which can only be gotten if you build the engine yourself or find someone who has hosted the pdb file from the version your using.

But that sounds like a library mismatch of some sort like a plugin that is using a different version of the Godot api calling on the wrong memory address.

@pennyloafers Do you know if pdb files work for WASM build in browser?

sorry, no, I thought wasm was more magical.

I spent a little time looking at the build and docs and web. One thing i found interesting is the web browser could be caching the “website” and clearing site data could help. The function error could be due to a plugin wasm mismatch, or it could be just a general error. You could try and run a normal editor build to see if there is a problem.

I tried my own web project but could not find this checkbox.

I’m not sure exactly what I did to fix it, but some combination of deleting and re-creating imports for some of my images seems to have made the errors go away.

Regarding the checkbox, it shows up after clicking the “Export Project…” button