public static void premain()

in agent/src/main/java/com/attachme/agent/Agent.java [38:52]


  public static void premain(String strArgs, Instrumentation instrumentation) {
    Map<String, String> args;
    try {
      args = parseArgs(strArgs);
    } catch (IllegalArgumentException e) {
      System.err.println("[attachme] FATAL ERROR: " + e.getMessage());
      System.exit(1);
      return;
    }
    // It's started from a thread to actively wait for jdwp to attach, it's required when suspend=y
    Thread task = new Thread(new DebugPortTask(args), "AttachmeAgentTread");
    task.setDaemon(true);
    task.setUncaughtExceptionHandler((t, e) -> e.printStackTrace());
    task.start();
  }