0

I am trying to use VisualVM to profile my scala application. I have added the Go To Source plugin for VisualVM but of course it will only recognize Java code. Is there a way I can specify in my project build that it should also output the interim java code?

I know I can use the following command to do it at a file level:

scalac -Xprint:parse Main.scala

But is there a way I can generate all the java code for a project to a specific directory?

user79074
  • 4,937
  • 5
  • 29
  • 57

1 Answers1

1

There is no interim java code. Scala compiles directly to JVM classfile code, without ever becoming Java code.

Martijn
  • 11,964
  • 12
  • 50
  • 96