# DebuggerConnection

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Subclasses: [LocalDebuggerConnection](https://rapi.sleaze.dev/classes/LocalDebuggerConnection.md)
- Tags: Not creatable, Not replicated
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/DebuggerConnection/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/DebuggerConnection

## Properties

### ErrorMessage

```luau
DebuggerConnection.ErrorMessage: string
```

- Tags: Hidden, Read only, Roblox script security

### Id

```luau
DebuggerConnection.Id: number
```

- Tags: Hidden, Read only, Roblox script security

### HasError

```luau
DebuggerConnection.HasError: boolean
```

- Tags: Hidden, Read only, Roblox script security

### IsPaused

```luau
DebuggerConnection.IsPaused: boolean
```

- Tags: Hidden, Read only, Roblox script security

## Methods

### AddBreakpoint

```luau
DebuggerConnection:AddBreakpoint(script: string, line: number, breakpoint: Breakpoint)
```

- Tags: Roblox script security

### Close

```luau
DebuggerConnection:Close()
```

- Tags: Roblox script security

### EvaluateWatch

```luau
DebuggerConnection:EvaluateWatch(expression: string, frame: StackFrame, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### GetFrameById

```luau
DebuggerConnection:GetFrameById(id: number): StackFrame
```

- Tags: Roblox script security

### GetSource

```luau
DebuggerConnection:GetSource(scriptRef: string, status: (...any) -> ...any): number
```

- Tags: Roblox script security

### GetThreadById

```luau
DebuggerConnection:GetThreadById(id: number): ThreadState
```

- Tags: Roblox script security

### GetThreads

```luau
DebuggerConnection:GetThreads(callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### GetVariableById

```luau
DebuggerConnection:GetVariableById(id: number): DebuggerVariable
```

- Tags: Roblox script security

### Pause

```luau
DebuggerConnection:Pause(thread: ThreadState, status: (...any) -> ...any): number
```

- Tags: Roblox script security

### Populate

```luau
DebuggerConnection:Populate(instance: Instance, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### RemoveBreakpoint

```luau
DebuggerConnection:RemoveBreakpoint(breakpoint: Breakpoint)
```

- Tags: Roblox script security

### Resume

```luau
DebuggerConnection:Resume(thread: ThreadState, status: (...any) -> ...any): number
```

- Tags: Roblox script security

### SetExceptionBreakMode

```luau
DebuggerConnection:SetExceptionBreakMode(breakMode: Enum.DebuggerExceptionBreakMode, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### SetVariable

```luau
DebuggerConnection:SetVariable(variable: DebuggerVariable, value: string, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### Step

```luau
DebuggerConnection:Step(thread: ThreadState, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### StepIn

```luau
DebuggerConnection:StepIn(thread: ThreadState, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### StepOut

```luau
DebuggerConnection:StepOut(thread: ThreadState, callback: (...any) -> ...any): number
```

- Tags: Roblox script security

### UpdateSelectedFrame

```luau
DebuggerConnection:UpdateSelectedFrame(threadId: number, frameNumber: number)
```

- Tags: Roblox script security

## Events

### BreakpointAdded

```luau
DebuggerConnection.BreakpointAdded: RBXScriptSignal<(breakpoint: Breakpoint)>
```

- Tags: Roblox script security

### BreakpointChanged

```luau
DebuggerConnection.BreakpointChanged: RBXScriptSignal<(breakpoint: Breakpoint)>
```

- Tags: Roblox script security

### BreakpointRemoved

```luau
DebuggerConnection.BreakpointRemoved: RBXScriptSignal<(breakpoint: Breakpoint, reason: Enum.BreakpointRemoveReason)>
```

- Tags: Roblox script security

### Paused

```luau
DebuggerConnection.Paused: RBXScriptSignal<(pausedState: PausedState, reason: Enum.DebuggerPauseReason)>
```

- Tags: Roblox script security

### Resumed

```luau
DebuggerConnection.Resumed: RBXScriptSignal<(pausedState: PausedState)>
```

- Tags: Roblox script security

## Inherited members

- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
