Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Logging errors from the client-side

Jared COct 1 2024

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.

This post has been answered by Jared C on Oct 2 2024
Jump to Answer
Comments
Post Details
Added on Oct 1 2024
2 comments
56 views