You want to use your browser's console to view detailed error messages environment, but when is active, your browser's console does not display detailed error traces.
Browser monitoring must capture and re-throw errors in order to record them, but some browser versions do not display stack traces for re-thrown errors. To solve this problem, enable browser's development mode in your local browser.
Browser monitoring agent versions 593 or higher include a workaround for this behavior, which can be enabled in the console. The following procedure is for Google Chrome, but you can adapt it for other browsers.
nr_flagsin local storage:localStorage.setItem('__nr_flags', 'dev')
To confirm development mode is active, check the console's browser agent logs for the message
NR AGENT IN DEVELOPMENT MODE.
Navigate the site, then trigger the errors that you want to track.
To disable development mode, run the following command in the console: