How hard would it be to support debug break on script?

Would it be possible to add support for adding a script specific breakpoint? Or even perhaps a blacklist so that only scripts which aren’t included would be traced by the debugger?

I haven’t tried setting it myself, but if you look into the mobdebug.luain your project, there’s a function mobdebug.setbreakpoint which is takes a filename, and a line number.

You should be able to call that with the filename, and line number.

Perhaps someone knows of an easier way to do it, or has already written such a function?

1 Like

You mean debugging of a specific instance of a script? I think you can add breakpoints programmatically, but I haven’t tried that.

1 Like

Not any specific instance. I’m thinking now more along the lines of right click a script file and add to blacklist so that when the trace button is used then that skip has all lines skipped over to avoid debugging extensions, etc.