/thread-access-plugin

Primary LanguageKotlinApache License 2.0Apache-2.0

Downloads Rating

Thread Access plugin

Simple plugin dedicated for Intellij plugin developers. Provides information about thread access during plugin debugging.

Shows information about:

  • Is write Thread
  • Is write access allowed
  • Is read access allowed
  • Is dispatch Thread
  • Is disposed (in Java source code)
  • Is in impatient reader
  • Holds read lock

There is no configuration. Plugin will try to detect if a process is debugging Intellij plugin and provide proper thread access information.

Installation

You can install this plugin from JetBrains plugin repository: link

Contributing

Feel free to do any contributions. If you want to test/debug it just clone this repository.

After cloning, build it with Gradle and run the plugin with runIde task.

From the running sandbox process create a plugin project (File|New|Project|Intellij Platform Plugin) and run it (even if this is a blank plugin).

At this moment you will have two running sandboxes but the 2nd was launched from the 1st. In 2nd sandbox create a sample project. In the 1st sandbox place a breakpoint (e.g. in com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction method). After that in the 2nd sandbox hit save on a source file (e.g. java) with ctrl+s or just edit it.