Skip to content

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

@luabud

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

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