dkandalov / live-plugin

IntelliJ plugin for writing IntelliJ plugins at runtime ⚡️
https://plugins.jetbrains.com/plugin/7282
Apache License 2.0
858 stars 67 forks source link

View debugging info/errors? #145

Closed UnbridledGames closed 2 years ago

UnbridledGames commented 2 years ago

Continuing to develop my plugin, but if there is an error that does not happen on startup (such as during a function execution) literally nothing happens, and I have no way of knowing why the action/etc failed to run. Is there a way to see errors that happen inside the plugin while it's running?

dkandalov commented 2 years ago

Hi. Sorry for the slow reply. This is similar to any other plugin. IDE will usually show a dialog with "IDE internal errors". But in some cases it will only log the stacktrace in the IDE log file or I've seen it silently ignoring the exception (it depends on how IDE code which integrate with handles errors). If you want to be sure all errors are displayed, you could wrap the code in try/catch and log it.

UnbridledGames commented 2 years ago

Yeah, only place I could find the info was in the main log file. Thanks.