Stackdriver Debugger V2 Client - Class SourceLocation (1.8.7)

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