As I remember there is a magic command line option in Java that turns on writing of operations that are currently executed to the console. The output looks like byte code.
-verbose
does not match as it prints only class loading, while this option outputs information like memory allocation, setting local variables etc. It was very detailed, like 10 lines for "Hello world".
I didn't find it here https://www.oracle.com/java/technologies/javase/vmoptions-jsp.html or here https://docs.oracle.com/javase/1.5.0/docs/tooldocs/solaris/java.html. Also I have found some flags, but most of them only work in openjdk or in the develop mode. Maybe there is a way I can start java.exe on Windows in this develop mode? Or maybe there is another set of flags that these lists miss?
jstack
is pretty neat as well. – Halle