Skip to content

Step into targets doesn't seem to respect selected option #661

Closed

Description

@luabud

Environment data

  • debugpy version: 1.3.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.10 (venv)
  • Using VS Code or Visual Studio: VS Code

Expected behavior

Selecting the "Image" option that shows after I run "Step into target..." should step into the Image file:

image

Actual behavior

Selecting "Image" gives the same behaviour as if I did a normal "step into" (i.e. steps into the parse_content method)

Steps to reproduce:

  1. Clone https://github.com/luabud/pvscc-logo
  2. Set up a venv and install the dependencies in the requirements.txt file
  3. Create the following launch.json configuration:
{
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
            "autoReload": {"enable": true}
}
  1. Open the generate_logo.py file (located on the root of the project)
  2. Set up a breakpoint on line 13
  3. Start debugging (F5) using the configuration we created above
  4. When the debugger stops on line 13, right-click on line 15 (wc = generate_wordcloud(parse_content(url),np.array(Image.open(mask_path))) ) and select "Jump to Cursor". This is just to avoid the if condition on line 14, that will return false by default.
  5. Once in line 15, right click and select "Step into Targets..."
  6. Select "Image"
  7. Watch it step into the parse_content method instead

Activity

  1. luabud commented on Jul 14, 2021

    @luabud
    MemberAuthor

    it's worth noting that after I end up into parse_content, if I do a step out and then a step into again, I do end up in the Image target (or at least I'm assuming that's the Image target):

    image

  2. fabioz commented on Jul 15, 2021

    @fabioz
    Collaborator

    Something really seems off there (I already started investigating).

    As a note, in this case the Image and np shouldn't even appear, only the open and array (so, something is off in the metadata collected).

  3. added 4 commits that reference this issue on Jul 16, 2021
    7a4593d
    8dfaa69
    e5e2dfc
    17d9a11
  4. added a commit that references this issue on Oct 9, 2024
    b826f57
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions