Setting breakpoints via some API

One of the coolest features we have on Roblox Studio is the ability to use breakpoints, they are awesome for debugging. But as someone who prefers to not use the builtin script editor, I feel quite inhibited.

Right now since the breakpoints are saved in the IDE state, I could technically write to them and build a rbxl file with them but that is very unwieldly. Honestly just some api utilizing an existing service like ScriptEditorService could work. I imagine you just need a function that describes the location of the breakpoint such as with (luasourcecontainer, linenumber). And then maybe a way to configure the nature of that breakpoint like if it is going to log, check for hits, etc. Maybe that would be a new instance like BreakpointInfo.new(). I am not 100% sure on the prescription for how to do things but as long as there is an wieldable api to do this I would be very happy.

One day we’ll have a debugging API… and then we’ll need to figure out how to map roblox-ts to luau for debugging statements :osyris:

This would be a great feature. As someone who also works with an external script editor, I currently lack any concrete method of debugging my code since I’m unable to use Breakpoints. I would really look forward to a solution being worked out to use Breakpoints with my current workflow.

If only…

this would be very useful for debugging with a rojo workflow!

DebuggerManager

Luau Built-In Debugger APIs, one day…