Is it possible to freeze the DOM in browser for drag debugging?

Viewed 1244

I'm trying to debug an Angular CDK drag problem. The problem only occurs while dragging, so it would be great if I could freeze the DOM while dragging. Then I want to inspect the DOM to find analyze the problem.

Is this prossible in Browsers (e.g. Firefox, Chrome)?

1 Answers

Thx to @wOxxOm for the hint in the comments. Yes, it should be possible to set breakpoints for e.g. drag and dragstart events.

Chrome event listener breakpoints

The problem was those breakpoints did not worked. Only dragstart worked in Firefox for me, but it was to early for my DOM debugging. But I got it working using the keyup event in Firefox. I dragged the element and then I hit the key and then breakpoint was triggered.

Related