Freeze on reaching breakpoint in button event listener

When setting a breakpoint inside of an Activated event listener for a GUI button, Studio will immediately freeze once the breakpoint is reached. I haven’t tested with other events.

To reproduce:

  • Open the provided place file and press play.
  • Once you spawn, look in the Output widget and click on the text to open the script.
  • Set a breakpoint on the indicated line.
  • Click the GUI button on screen.
  • Studio will immediately hang.

BreakpointFreeze3.rbxl (20,1 KB)

This is just a LocalScript inside of a button.

script.Parent.Activated:Connect(function()
	print("A") -- Breakpoint here
end)

Full program dump:
https://devforum.roblox.com/t/freeze-on-breakpoint-in-callback-in-lua-class-that-gets-called-in-an-event-listener/691618

I’m using Windows 10.
This happens with all beta features disabled.

1 Like

I tried out the provided sample and studio did not freeze for me. I as able to set the breakpoint, stop at the breakpoint and resume.

I was checking this out because I have a similar problem in which reaching a breakpoint causes studio to freeze, just so happens to be at a different set of circumstances than yours.

Thanks for the report. This should be fixed now.

1 Like

Interesting, this has also fixed the RenderStepped debug/breakpoint freeze issue I was having.

Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.