Stream: dev

Topic: How to debug CVOC javascript file


view this post on Zulip Florian Fritze (Mar 14 2025 at 10:49):

Hi there,
I would like to know if there is a pratical way to debug a CVOC javascript file? I can see the file as a resource in my browser when I am on the dataset page. But my breakpoints don't seem to work as expected because they are not hit when I use the CVOC functionality especially in a dropdown menu. So how do you debug them at all?
Kind regards
Florian

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 14 2025 at 12:06):

@Slava Tykhonov do you have any thoughts on this?

view this post on Zulip Florian Fritze (Mar 14 2025 at 14:24):

Hi all, the debugging session is failing because of a bug. So this request can be closed. I can debug completely in the browser I just have to find out what is triggering the bug which causes my debugging session to abort.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 14 2025 at 14:29):

Ok, I'm glad you're making progress!

view this post on Zulip luddaniel (Mar 27 2025 at 10:33):

Hi @Florian Fritze I had the same issue, and ended up using console.log(object) to debug (JSPF partial reload cause a lot of javascript reload that is not tracked in debug mode by default). Now I see your message I spend some time to understand and here is the solution :

  1. Open your Chrome Dev Tools
  2. Navigate to the "Sources" tab
  3. On the right panel, expand "Event Listener Breakpoints"
  4. Check "Load"

Screenshot from 2025-03-27 11-29-21.png


Last updated: Nov 01 2025 at 14:11 UTC