Adds debugging support for Solidity language and integrates Intellij with Web3j EVM.
** This is still work in progress, and the plugin not published yet.
Building from the code
Build
./gradlew buildPlugin
Run
./gradlew runIde
or
With Idea using gradle task, Tasks -> intellij -> runIde (in debugger mode)
After that, it should open a new Idea app with our debugging plugin. Open your sample project with a solidity contract.
-
Make sure that Solidity plugin is installed.
-
Configure solidity preferences: Preferences -> Languages & Frameworks -> Solidity
- Use Solc to build project - true
- Standalone Solc path - "{your path}/bin/solc"
- Generate java stubs for contracts during compilation - true
- Style: Web3J
-
Configure Run/Debug Configurations
- Add new configuration Evm.
- Fill in the following lines: Name(for example "RunHelloWorld"), Contract Wrapper (for example "HelloWorld"), Solidity Contract (for example "HelloWorld").
- Fill in the field 'Deploy Methods' - "deploy"
-
Execute Run task('RunHelloWorld') in the debug mode.
The plugin is compatible with all IntelliJ-based IDEs starting from the version 2020.3
- IntelliJ IDEA Community Edition
** Requires Intellij Solidity plugin to be installed.
For standalone or embedded Ethereum node to run within Java process, head for Web3J EVM repo