How to print debugging messages? 关注
已回答
See `print` call at the beginning of `actionPerformed`:
class HelloAction : AnAction("Hello") {
override fun actionPerformed(event: AnActionEvent) {
print("Event: $event")
val project = event.project
Messages.showMessageDialog(project, "Hello world!", "Greeting", Messages.getInformationIcon())
}
}
This is not printed when the action is performed, but after I stop the plugin! What do I have to do to see the output immediately?
请先登录再写评论。
See com.intellij.openapi.diagnostic.Logger