Skip to content

Test: Breakpoints updated only after save #9533

Closed

Description

Test for #8077:

New or changed breakpoints are now sent to the debug adapter only after a file has been saved so that they always correspond to the file on disk. Previously breakpoints were sent to the debug adapter immediately even before the file was saved to disk. In this case the debugger would register breakpoints for a source location that only exists in the editor buffer, but not in the file that the runtime sees.

(More details about this feature can be found here: #8077)

Turn auto save off and then launch a node debug session and stop on break.
Then verify:

  • As long as the file is not edited breakpoints should behave normally, e.g. they are shown as verified, they are hit and can be enabled / disabled, deleted.
  • As soon as a file is edited, breakpoints are shown as unverified and the hover message explains why.
  • Once a file is saved breakpoints are still unverified (because node-debug does not yet implement hot-code-replacement). The hover message should be slightly different.

Activity

  1. added
    debug
    on Jul 20, 2016
  2. changed the title [-]Breakpoints updated only after save[/-] [+]Test: Breakpoints updated only after save[/+] on Jul 25, 2016
  3. sandy081 commented on Jul 26, 2016

    @sandy081
    Member

    Done with testing. LGTM.

  4. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    debugtestplan-item

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions