Hi, I came across this article and tried implementing the described solution. However, it is not working. I am not sure if it is due to the code being wrong, or if it is due to my not being able to simulate the kind of error that would trigger window.onerror
.
I copy/pasted the author's code into a On Page Load DA that executes JavaScript code.
I then have this in the Shared Components > Application Processes
To simulate an error on the client-side, I executed apex.debug.error('error')
and throw Error('error')
However, nothing seems to be happening, and there are definitely no logs from my Logger installation.
I messed around with the code a bit… for instance, I'm not sure why the application process references g_x01
and so forth, while the JS code lists x01
and so forth, respectively.