Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug SVG drawn using javascript

I am using javascrpit to draw some svg graph. Is there a way that I can debug towards the svg graph produced? Specifically, I am looking for something like the element inspector or something like that, that can point me to the code that draws that part of the svg graphics.

like image 872
user3463521 Avatar asked Jun 08 '26 06:06

user3463521


1 Answers

How about adding a DOM breakpoint on the SVG node? Use a Subtree Modification or Attribute Modification breakpoint. When your JS modifies the node, DevTools pauses on the line of code that caused the modification.

like image 188
Kayce Basques Avatar answered Jun 10 '26 13:06

Kayce Basques



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!