activate breakpoint while dragging

I am trying to debug flickering of the drop placeholder while dragging over the droppable area. I want to activate the breakpoint when the flickering occurs so that I can identify which part of the code is responsible for this.

Here is what I have tried,

  • added debugger command to suspected places in the code but the breakpoint does not activates while flickering.
  • added event listener breakpoints but since I have to keep the mousedown, pause prior to flickering breaks the flow.
  • added a breakpoint using a setTimeout, the breakpoint activates while flickering but the call stack only contains setTimeout and its callback.

How can I activate a breakpoint in the case?

enter image description here

1 answer

  • answered 2021-09-27 16:20 rannikkopyry

    By reading some articles it seems like that for some people breakpoints don't activate while debugging if you are running Vscode as an administrator. Try disabling the "Run as an administration" if you are using Visual Studio Code.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum