Badoo Example plugin (printf-like functions)
IDE Setup
You will need IDEA Community Edition or IDEA Ultimate.
PhpStorm can't have Plugin DevKit
installed
- Checkout source, i.e.
$ git clone [email protected]:intellij-idea-badoo-components.git
- Install
Gradle
plugin in IDEA - Open project
- Idea will suggest to import Gradle configuration, agree and chose
Use gradle 'wrapper' task configuration
- View -> Tool windows -> Gradle
Build From IDE
View -> Tool windows -> Gradle -> Tasks -> intellij -> buildPlugin
Build From Command line
$ ./gradlew --info buildPlugin
The plugin will be placed in build/distributions/
Run tests from command like
$ ./gradlew test
Test result report will be placed in build/reports/tests/test/index.html
Debug
- Run PhpStorm
- Help -> Edit Custom VM Options...
- Add line:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
- Install new version of the plugin & restart PhpStorm
- In Idea Community, go to Run -> Attach to Process... If everything is right, in the list you will find the process of PhpStorm
- Set breakpoint and enjoy the debug.