function x()
– complex computation below
local a = 1 + 1; – << BREAKPOINT HERE >>
end
x();
[/code]
Add a breakpoint at the specified location then run the code, the call stack window is pretty much completely useless then since it constantly refreshes and isn’t responsive because a new script context is created every 1/60th sec. It’s quite annoying.
There’s definitely a flaw, which is that the debugger depends on RunService to halt everything. The problem is that events like Heartbeat and RenderStepped fire independently of RunService’s state.
For now, if this is preventing you from debugging, you can temporarily swap Heartbeat or RenderStepped with Stepped, which does depend on RunService.