Skip to content

Inconsistent behaviour of 'Run to Cursor' #8731

Closed

Description

@weinand
  • VSCode Version: 1.3.0

Steps to Reproduce:

  • use this snippet:

    for (var i = 0; i < 100; i++) {
      // console.log("hello 1");
      console.log("hello 2");
      console.log("hello 3");
    }
  • set a breakpoint in line with 'hello 3'

  • start debugging (hit breakpoint in line with 'hello 3')

  • set caret in line with 'hello 2' and execute 'Run to Cursor'

Observe: line with 'hello 2' is hit and no breakpoint icon is shown for that line

  • set caret in line with 'hello 1' and execute 'Run to Cursor'

Observe: line with 'hello 2' is hit and a breakpoint icon is shown for that line

I wold expect that no breakpoint is kept after a 'Run to Cursor'

Activity

  1. added
    bug
    debug
    on Jul 4, 2016
  2. locked and limited conversation to collaborators on Nov 18, 2017
  3. added a commit that references this issue on Sep 6, 2026
    e88855e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions