Skip to content

sourceReference should be 0 for jupyter cells #113

Closed
@rchiodo

Description

@rchiodo

Environment data

  • DEBUGPY version: '1.0.0b5'
  • PTVSD version: '4.3.2'
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7
  • Using VS Code or Visual Studio: VS code

Actual behavior

Stepping into functions doesn't work. Opens bogus file.

Expected behavior

Stepping into functions defined in other cells would open the appropriate file with the cell.

Steps to reproduce:

  1. Create file like so
# %% 
def baz():
   print('baz')

# %%
print('foo')
baz()
  1. Run first cell in the interactive window in VS code
  2. Debug second cell
  3. Step into the baz call
  4. It will not go to where the first cell is defined.

I'll attach logs in a second.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions