Skip to content

Step into method with optimized loops freezes the debugger #19026

@guillep

Description

@guillep

This one is funny :)

"Execute this"
OpalCompiler compile: 'foo
	[1] repeat'.

"Debug this (cmd+shift+D) and step into #foo"
OpalCompiler new foo.
  • Debug the second expression step into foo
  • Freeze!

The debugger tries to step until the next "interesting bytecode".
But! This just loops, so the debugger keeps looping.
The next interesting bytecode is the return after the loop.
But this is an infinite loop.

Scope of the issue

We have seen this with repeat but also with whileTrue:/whileFalse:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions