Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i use breakpoints when testing servers in studio?

Asked by 8 years ago

I'm trying to fix something that doesn't give any errors in output. Everything works fine in solo, but when I test with servers, idk how to use breakpoints. How do i use the debugger??

1 answer

Log in to vote
1
Answered by 8 years ago

An easy way to find a breakpoint in your script is using print()s. E.G

local num = 5
print("ok")
if num == 5 then
    print("ok2")
    num = 3
    if num == 4 then
        print("ok3")
    end
end

In this case, it will print up to "ok2", but not "ok3".

Ad

Answer this question