Skip to content

Debugger does not jump to Breakpoint inside a Module #2888

@reneheimbuch

Description

@reneheimbuch

Environment data

  • VS Code version: 1.28.1
  • Extension version (available under the Extensions sidebar): 2018.9.0
  • OS and version: Windows 7 SP1 64 Bit
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: None

Actual behavior

Debugger stops, but behaves as if the breakpoint was set in the callers script.

Expected behavior

Debugger should stop inside the module, exactly at the breakpoint's locoation and show local and global debug information

Steps to reproduce:

  1. Create "Caller File" somewhere not in the python path.
import mymodule
  1. New folder $python\Lib\site-packages\mymodule

  2. New Module File $python\Lib\site-packages\mymodule_init_.py

print("breakpoint")
  1. Load both folders into workspace

  2. set breakpoint at print statement

  3. start debug of caller file.

result: breakpoint will stop at import mymodule not at print ...

Logs

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