Skip to content

Breakpoints don't work in event handlers. #1894

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


import("dart:dom");

main() {
  window.document.getElementById('x').addEventListener('click', handleClick, true);
}

void handleClick(event) {
  handleClick2(event); // <- breakpoint1
}

void handleClick2(event) {
  window.console.log('click'); // <- breakpoint2
}

Debugger never pauses in handleClick, only in handleClick2. The same is true for setTimeout handlers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions