Foundry.DebuggerVariable

g Foundry.DebuggerVariable Foundry.DebuggerVariable GObject.Object GObject.Object GObject.Object->Foundry.DebuggerVariable

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_name ()

dup_type_name ()

dup_value ()

is_structured ()

list_children ()

read_memory (offset, count)

Virtual Methods

Inherited:

GObject.Object (7)

do_dup_name ()

do_dup_type_name ()

do_dup_value ()

do_is_structured ()

do_list_children ()

do_read_memory (offset, count)

Properties

Name

Type

Flags

Short Description

name

str

r

type-name

str

r

value

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.DebuggerVariable(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.DebuggerVariableClass

Abstract base class for representing variables in the debugger.

Foundry.DebuggerVariable provides the core interface for representing variables during debugging sessions. It includes variable name, type, and value information, and provides a unified interface for variable inspection and manipulation across different debugging backends.

dup_name()
Return type:

str or None

dup_type_name()
Return type:

str or None

dup_value()
Return type:

str or None

is_structured()
Returns:

True if self is known to have children that may be queried; otherwise False.

n_children:

the number of known children

Return type:

(bool, n_children: int)

If the number of children is known, it will be set to n_children. Otherwise it should be set to zero.

New in version 1.1.

list_children()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.DebuggerVariable] or rejects with error.

Return type:

Dex.Future

Queries the structured children of the variable.

New in version 1.1.

read_memory(offset, count)
Parameters:
  • offset (int) – offset to begin reading from

  • count (int) – number of bytes to read, must be > 0

Returns:

a [class`Dex`.Future] that resolves to a [struct`GLib`.Bytes] or rejects with error.

Sicne: 1.1

Return type:

Dex.Future

Read count bytes at offset of the variable.

do_dup_name() virtual
Return type:

str or None

do_dup_type_name() virtual
Return type:

str or None

do_dup_value() virtual
Return type:

str or None

do_is_structured() virtual
Returns:

True if self is known to have children that may be queried; otherwise False.

n_children:

the number of known children

Return type:

(bool, n_children: int)

If the number of children is known, it will be set to n_children. Otherwise it should be set to zero.

New in version 1.1.

do_list_children() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.DebuggerVariable] or rejects with error.

Return type:

Dex.Future

Queries the structured children of the variable.

New in version 1.1.

do_read_memory(offset, count) virtual
Parameters:
  • offset (int) – offset to begin reading from

  • count (int) – number of bytes to read, must be > 0

Returns:

a [class`Dex`.Future] that resolves to a [struct`GLib`.Bytes] or rejects with error.

Sicne: 1.1

Return type:

Dex.Future

Read count bytes at offset of the variable.

Property Details

Foundry.DebuggerVariable.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.DebuggerVariable.props.type_name
Name:

type-name

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.DebuggerVariable.props.value
Name:

value

Type:

str

Default Value:

None

Flags:

READABLE