The UI console is mainly for testing the code in the function not the configurations of the function.
You’ll need to debug it by calling the function as it would work in production and observe at the app logs.
If you need to console.log the value of referrer within the code this will suffice which will appear in the app logs: context.request.httpReferrer