Java

From My wiki
Jump to: navigation, search

About

Currently in version 12

Basics

Code

If debug

Module-info

module AppNameHere {
	requires java.management;
}

Usage

public static boolean debugging = java.lang.management.ManagementFactory.getRuntimeMXBean().getInputArguments().toString().indexOf("-agentlib:jdwp") > 0;

Links

Official site

Wikipedia