Type Script function error Redacted message: see unsafe logs}\n{Redacted stacktrace: see unsafe logs

I have a typescript function that doesnt show any errors in Problems Tab. when I goto live function, provide input and run, I get this under error. I have a bunch of cosole log statements, but I dont seem to get any of those on screen.
`
how to check these logs ?
{
“errorCode”: “INTERNAL”,
“errorInstanceId”: “0cf48c7f-f3f5-4c71-853f-d56da5efb525”,
“errorName”: “Functions:Internal”,
“parameters”: {
“message”: “Unsafe error”,
“stacktrace”: “ReferenceError: {Redacted message: see unsafe logs}\n{Redacted stacktrace: see unsafe logs}”
}
}