microsoft / microsoft/PTVS

Set Next statement does not work in mixed mode

Open
#8,073 0 comments 0 reactions 1 assignee View on GitHub

@bschnurr is already working on this.

Since Nov 19, 2024.

needs repro
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

VS 2017 allowed set next statement within a frame of a python call. VS 2022 does not.

The old code did this:
https://github.com/microsoft/PTVS/blob/cfdced90c7834d9ff3260f90f651720ad8817422/Python/Product/PythonTools/visualstudio_py_debugger.py#L1919

Theoretically we could do the same. f_lineno is writeable for this exact situation.
https://docs.python.org/3/reference/datamodel.html#frame.f_lineno

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.