Foundry.DebuggerThread

g Foundry.DebuggerThread Foundry.DebuggerThread GObject.Object GObject.Object GObject.Object->Foundry.DebuggerThread

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

can_move (movement)

dup_group_id ()

dup_id ()

interrupt ()

is_stopped ()

list_frames ()

move (movement)

Virtual Methods

Inherited:

GObject.Object (7)

do_can_move (movement)

do_dup_group_id ()

do_dup_id ()

do_interrupt ()

do_is_stopped ()

do_list_frames ()

do_move (movement)

Properties

Name

Type

Flags

Short Description

group-id

str

r

id

str

r

stopped

bool

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.DebuggerThread(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.DebuggerThreadClass

Abstract base class for representing threads in the debugger.

Foundry.DebuggerThread provides the core interface for representing threads during debugging sessions. It includes thread identification, state management, and provides a unified interface for thread control and inspection across different debugging backends.

can_move(movement)
Parameters:

movement (Foundry.DebuggerMovement) –

Returns:

True if movement may be a valid movement now.

Return type:

bool

If self can attempt movement at this point.

dup_group_id()
Return type:

str

dup_id()
Return type:

str

interrupt()
Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error.

Return type:

Dex.Future

Stops the thread.

New in version 1.1.

is_stopped()
Returns:

True if thread is stopped

Return type:

bool

Gets if the thread is currently stopped.

Subclasses should [method`GObject`.Object.notify] the “stopped” property when this value changes.

New in version 1.1.

list_frames()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.DebuggerStackFrame].

Return type:

Dex.Future

move(movement)
Parameters:

movement (Foundry.DebuggerMovement) –

Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error.

Return type:

Dex.Future

New in version 1.1.

do_can_move(movement) virtual
Parameters:

movement (Foundry.DebuggerMovement) –

Returns:

True if movement may be a valid movement now.

Return type:

bool

If self can attempt movement at this point.

do_dup_group_id() virtual
Return type:

str

do_dup_id() virtual
Return type:

str

do_interrupt() virtual
Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error.

Return type:

Dex.Future

Stops the thread.

New in version 1.1.

do_is_stopped() virtual
Returns:

True if thread is stopped

Return type:

bool

Gets if the thread is currently stopped.

Subclasses should [method`GObject`.Object.notify] the “stopped” property when this value changes.

New in version 1.1.

do_list_frames() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.DebuggerStackFrame].

Return type:

Dex.Future

do_move(movement) virtual
Parameters:

movement (Foundry.DebuggerMovement) –

Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error.

Return type:

Dex.Future

New in version 1.1.

Property Details

Foundry.DebuggerThread.props.group_id
Name:

group-id

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.DebuggerThread.props.id
Name:

id

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.DebuggerThread.props.stopped
Name:

stopped

Type:

bool

Default Value:

False

Flags:

READABLE

If the thread is known to be stopped.

New in version 1.1.