Sorry to bother you, recently I was studying the k...
# compiler
l
Sorry to bother you, recently I was studying the kotlin compiler, I cloned the code and ran
./gradlew runIde
to check my changes, but I don’t know how to debug the breakpoint directly, could anyone please help me solve it
s
Not sure it would help, but I have done similar debugging before. The situation I encountered was that the compiler was running in a new process, and I did it through IDEA's remote debugging tool.
d
Building and running IDE with plugin build from sources with
runIde
task is deprecated due to migration of kotlin plugin to intellij repository If you want to debug changes in compiler (not in IDE plugin) then it's recommended to use compiler tests (
DiagnosticTestGenerated
,
BlackBoxCodegenTestGenerated
or
IrBlackBoxCodegenTestGenerated
)
If you really want to debug IDE plugin, then you can just run debug from idea on predefined run configuration
IDEA -> IDEA
l
thanks for reply. it save my time. 🤣