Class: Twib::Interfaces::ITwibDeviceInterface

Inherits:
Twib::Interface show all
Defined in:
lib/twib/interfaces/ITwibDeviceInterface.rb

Overview

Main interface exposed by a device.

Defined Under Namespace

Modules: Command

Instance Method Summary collapse

Methods inherited from Twib::Interface

#initialize, #send

Constructor Details

This class inherits a constructor from Twib::Interface

Instance Method Details

#open_active_debugger(pid) ⇒ ITwibDebugger

Opens an active debugger for the process with the given PID.

Parameters:

  • pid (Integer)

    Process ID

Returns:



26
27
28
# File 'lib/twib/interfaces/ITwibDeviceInterface.rb', line 26

def open_active_debugger(pid)
  ITwibDebugger.new(@connection, @device_id, send(Command::OPEN_ACTIVE_DEBUGGER, [pid].pack("Q<")).wait_ok.object_ids[0])
end