Udostępnij za pośrednictwem


Debug.AttachJvmtiAgent(String, String, ClassLoader) Method

Definition

Attach a library as a jvmti agent to the current runtime, with the given classloader determining the library search path.

[Android.Runtime.Register("attachJvmtiAgent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=28)]
public static void AttachJvmtiAgent (string library, string? options, Java.Lang.ClassLoader? classLoader);
[<Android.Runtime.Register("attachJvmtiAgent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=28)>]
static member AttachJvmtiAgent : string * string * Java.Lang.ClassLoader -> unit

Parameters

library
String

the library containing the agent.

options
String

the options passed to the agent.

classLoader
ClassLoader

the classloader determining the library search path.

Attributes

Remarks

Attach a library as a jvmti agent to the current runtime, with the given classloader determining the library search path.

Note: agents may only be attached to debuggable apps. Otherwise, this function will throw a SecurityException.

Java documentation for android.os.Debug.attachJvmtiAgent(java.lang.String, java.lang.String, java.lang.ClassLoader).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to