I would like to write my compiler plugin for scalac, but I get a problem in early state in development because I cannot run and debug my code from IntelliJ IDEA.
I use these tutorials for implementing a dummy plugin:
To debug a java process in IntelliJ IDEA you need to create a
Remote run configuration first.
Specify an available port number. If you select
Listen debugger mode your java process will be suspended on the start until you connect to it with the debugger.
Run your process with additional command line arguments and start this remote configuration in the debug mode.
If you run scala compiler from IDEA, these command line arguments should be added to Scala Compile Server: