# Stackdriver Debugger V2 Client - Class SourceLocation (1.9.5)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.9.5 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/latest/V2.SourceLocation)
- [1.9.4](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.9.4/V2.SourceLocation)
- [1.8.8](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.8.8/V2.SourceLocation)
- [1.7.0](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.7.0/V2.SourceLocation)
- [1.6.4](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.6.4/V2.SourceLocation)
- [1.5.1](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.5.1/V2.SourceLocation)
- [1.4.16](https://docs.cloud.google.com/php/docs/reference/cloud-debugger/1.4.16/V2.SourceLocation)
Reference documentation and code samples for the Stackdriver Debugger V2 Client class SourceLocation.

Represents a location in the source code.

Generated from protobuf message `google.devtools.clouddebugger.v2.SourceLocation`

## Namespace

Google \\ Cloud \\ Debugger \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `string` Path to the source file within the source context of the target binary. |
| `↳ line` | `int` Line inside the file. The first line in the file has the value `1`. |
| `↳ column` | `int` Column within a line. The first column in a line as the value `1`. Agents that do not support setting breakpoints on specific columns ignore this field. |

### getPath

Path to the source file within the source context of the target binary.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPath

Path to the source file within the source context of the target binary.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLine

Line inside the file. The first line in the file has the value `1`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLine

Line inside the file. The first line in the file has the value `1`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getColumn

Column within a line. The first column in a line as the value `1`.

Agents that do not support setting breakpoints on specific columns ignore
this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setColumn

Column within a line. The first column in a line as the value `1`.

Agents that do not support setting breakpoints on specific columns ignore
this field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |