So a Roblox update after 6/9/21 makes my studio crash when I open up this game while I have this plugin enabled. Since saying just this might not be helpful enough for engineers to identify the issue, I was planning on isolating the specific module of my game causing the crash by overwriting require, trying things like this:
local require=function(module)
local b=Instance.new'BindableEvent'
b.Event:Connect(error)--hoping error wouldn't have a buffer
b:Fire(module:GetFullName())
return require(module)
end
Fwiw the error popup I get is the standard “An unexpected error occurred and Roblox needs to quit. We’re sorry!”, and no more text in the Output window.
If outputing the print buffer is not doable, it’d be nice to at least have something like C++'s cerr:
print'aaa'--no output because print is buffered
crash'An unexpected error occurred and Roblox needs to quit. We\'re sorry!'
printnow'aaa'--yes output because printnow is not buffered
crash'An unexpected error occurred and Roblox needs to quit. We\'re sorry!'