console-ninja icon indicating copy to clipboard operation
console-ninja copied to clipboard

[Bug]: Console Ninja breaks debug console

Open Danny220 opened this issue 1 year ago • 5 comments

What happened?

I was expecting to debug my angular application in chrome normally, but the only source showen was a random file containing "globalThis._console_ninja" that prevented me to view the original source

image

Version

1.0.316

CLI command to start your dev tool

nx run-many --target=serve --configuration=local

Steps to reproduce (or sample repo)

  1. start up ng serve
  2. put debugger image
  3. open devtools on chrome and trigger the debugger

Log output

i could not find that folder

Danny220 avatar Apr 29 '24 10:04 Danny220

@Danny220 We have tried to reproduce the issue, but it's working for us as expected in the latest NG generated app:

ng

Also works as expected in a simple button click handler: Screenshot 2024-04-30 at 9 25 14 AM

Can you please share a sample repo where the issue can be reproduced?

You can also try to restart Ninja to see if it helps. As a workaround, you may also just pause Ninja (with VS Code Ninja Pause command) prior to debugging.

ArtemGovorov avatar Apr 29 '24 23:04 ArtemGovorov

It's very confusing for me too, because it's not happening everytime, but pretty often. Unfortunately I can not share a sample repo as the project where it happens is of my job's and it's not open source. The component where I encountered the issue is very large, could this be a cause?

Danny220 avatar Apr 30 '24 07:04 Danny220

The component where I encountered the issue is very large, could this be a cause?

We have tried nx specifically, also larger components, but still can't reproduce the issue. Can you please copy and paste your log output from the ~/.console-ninja/trace.log file in your user home directory? The log file can also be opened from hovering the Ninja status bar item in VS Code, and locating the Show Log link in the hover popup.

ArtemGovorov avatar May 01 '24 00:05 ArtemGovorov

I'm very sorry for the late response. Here you go

trace.log

Danny220 avatar Jul 03 '24 11:07 Danny220

Thanks for providing the trace log. Unfortunately it doesn't provide any information to help identify why it's not working for you.

I understand that you can't share your current project, but we will require a sample project to investigate further. We'd suggest taking your public dependency and configuration from your current project and see if you can reproduce the problem in a new code base. I expect you would be able to reproduce the problem if you take this approach.

smcenlly avatar Jul 04 '24 04:07 smcenlly