After using the debugger since the Better Breakpoints Beta came out, I’ve had no issues whatsoever until now. For one of my scripts, I use Logpoints to print out debugging information. The original thread states that logpoints should continue execution as long as their Continue Execution property is set to true. This, however, doesn’t happen in this case.
The actual behaviour is most likely a bug or something I’ve overlooked but it isn’t intended behaviour.
When the execution reaches the logpoint, no matter the Continue Execution, it will pause the execution and wait for instructions (Resume, step into, step over, etc.). This is the first issue.
The second issue is that after I resume execution, the client becomes broken and unable to move. This was just my bad scripting.
Video:
The intended behaviour is that the logpoint outputs “Hello, world!” and continues execution without pausing.
Any help to why this is happening and/or a solution would be appreciated.
Thanks.
EDIT 1: This is definitely a studio bug. Sometimes the logpoint works and sometimes it doesn’t.
Example
I ran the game multiple times without changing anything.
Yes, now I can’t even get the logpoints to continue execution, whereas when I first reported this bug, I could still sometimes continue execution.
Then
Now
Logpoints:
Code sample:
local function OnGrab(Name, InputState, InputObject)
if (InputState == Enum.UserInputState.Begin) then
local Origin = (Camera.CFrame.Position)
local Direction = (Origin - Mouse.Hit.Position)
local Params = RaycastParams.new()
Params.FilterDescendantsInstances = {Character}
Params.RespectCanCollide = false
Params.IgnoreWater = true
local Raycast = Workspace:Raycast(Origin, Direction, Params)
if (Raycast) then -- LOGPOINT 1
local Distance = Raycast.Distance
local Position = Raycast.Position
local Hit = Raycast.Instance
if (Distance > MAX_CARRY_DISTANCE) then
return
end
if (typeof(Hit) == "Part") then
return
end
if (CurrentDragger) then
CurrentDragger:Destroy()
end
CurrentDragger = CreateDragger(Hit, Position)
end
else -- LOGPOINT 2
if (CurrentDragger) then
CurrentDragger:Destroy()
end
end
end