Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

stopOnEntry broken when a excluded script loads an included script #1636

Closed
karthiknadig opened this issue Jul 26, 2019 · 2 comments · Fixed by microsoft/debugpy#67
Closed

Comments

@karthiknadig
Copy link
Member

Environment data

  • PTVSD version: master
  • OS and version: Any
  • Python version (& distribution if applicable, e.g. Anaconda): Any
  • Using VS Code or Visual Studio: VSCode

Actual behavior

Does not stop on entry into scriptB.py

Expected behavior

Should stop on the first line of scriptB.py

Steps to reproduce:

  1. Let scriptA.py load ScriptB.py. Let script A and B be in different locations

scriptA.py:

import scriptB

print("in script A")

scriptB.py:

print("in script B")

In the launch json, exclude the location of script A.

{
    "name": "Terminal",
    "type": "python",
    "request": "launch",
    "pythonPath": "${config:python.pythonPath}",
    "program": "${file}",
    "cwd": "${workspaceFolder}",
    "console": "integratedTerminal",
    "stopOnEntry": true,
    "rules":[
        {"path": "C:\\scriptApath\\**", "include": false}
    ]
},
@fabioz
Copy link
Contributor

fabioz commented Mar 8, 2020

I'm taking a look at this.

@fabioz
Copy link
Contributor

fabioz commented Mar 9, 2020

I haven't been able to reproduce this.

I did find some inconsistencies handling filenames in and provided a pull request for that in microsoft/debugpy#67 and I added a test for what's described in this issue, so, although I haven't been able to reproduce this at least there'sa test which checks this use-case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants