Skip to content

Goto Breaks on Indented Line #2114

@stephen-ritter

Description

@stephen-ritter

I was using the following script to test the new Goto functionality:

x = 0
for i in range(10):
  x += 1
  print(x)

If I put a breakpoint on line 4 and then use Goto Line to line 3, the script will crash with IndentationError: unexpected indent. I also noticed that if I use Goto Line by right clicking on the line number itself it crashes with the same error even if previously it was working. I tried to capture what I was encountering in the attached gif.

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcustomer

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions