Safari web inspector logging user-script instead of the app javascript files

Dear All,

I am in the process of migrating an iOS app from Cordova to Capacitor.

When debugging the app on the device, via Safari Web Inspector, the logs are hijacked by CapacitorConsole, and each line of log goes to user-scriptorgConsole[level].apply(win.console, msgs);

Well, before using Capacitor I could click on each log message and it would open my javascript file so I could debug.

How can I solve this? It makes debugging impossible