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:
My goal is to run my plugin somehow in debug mode in IDEA to encounter breakpoints.
Update:
The answer below helped me a lot but actually, I added arguments for debugging for JAVA_OPTS environment variable with suspending until remote debugger connection option. Then I started scalac and run remote debugger described below.