Reputation: 6929
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)?
Upvotes: 5
Views: 3477
Reputation: 6929
Thx to @wOxxOm for the hint in the comments. Yes, it should be possible to set breakpoints for e.g. drag
and dragstart
events.
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.
Upvotes: 4