public final class CloudDebuggerAgent extends Object
These methods should only be called if the Cloud Debugger is enabled. Otherwise these calls will throw exception. The debugger agent is loaded very early, so these methods can be used at any time.
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(ClassLoader debuggerInternalsClassLoader)
Starts the initialization sequence of the Java Cloud Debugger agent.
|
static byte[][] |
dequeueBreakpointUpdates()
Pulls breakpoint updates to send to the Cloud Debugger service through AppServer.
|
static boolean |
hasBreakpointUpdates()
Verifies if there are breakpoint updates to send to the Cloud Debugger service.
|
static void |
setActiveBreakpoints(byte[][] breakpoints)
Updates the list of active breakpoints in the debugger.
|
static void |
setApplication(String[] classPath,
CloudDebuggerCallback callback)
Hooks up Cloud Debugger to the application.
|
public static void bind(ClassLoader debuggerInternalsClassLoader)
debuggerInternalsClassLoader - ClassLoader object to use to load internal debugger Java
classes.public static void setApplication(String[] classPath, CloudDebuggerCallback callback)
Multiple paths in classPath are separated with File.pathSeparator. The
debugger is exploring all the paths recursively opening .JAR files as they are encountered.
This function must be called after bind but before the first breakpoint is set.
Setting breakpoints will fail until this method is called.
classPath - paths to application classescallback - Callback interface used by Cloud Debugger to query AppEngine Classic runtimepublic static void setActiveBreakpoints(byte[][] breakpoints)
breakpoints - list of currently active breakpoints, where each breakpoint is a serialized
"com.google.protos.google.cloud.debugger.v1.CloudDebuggerData.Breakpoint" message.public static boolean hasBreakpointUpdates()
public static byte[][] dequeueBreakpointUpdates()
com.google.protos.google.cloud.debugger.v1.CloudDebuggerData.Breakpoint messages or null if
no breakpoint updates available.Copyright © 2022. All rights reserved.