Raspberry Pi: How to remote debug Dart command line applications in IntelliJ

Environment
  • Ubuntu 18.04 LTS
  • IntelliJ IDEA Community 2018.3
  • Raspberry Pi 3 Model B
IntelliJ

Create Dart Remote Debug configuration for your Dart application:

Ubuntu terminal

Copy your application and open an ssh session to Raspberry Pi :

$ scp -r dartapp/ pi@192.168.0.60:/home/pi
$ ssh pi@192.168.0.60
SSH session on Raspberry Pi
$ cd ~/dartapp
$ pub get
Resolving dependencies... (1.9s)
Got dependencies!
$ dart --enable-vm-service:5858/0.0.0.0 --pause_isolates_on_start bin/main.dart 
Observatory listening on http://0.0.0.0:5858/
intellij

Now you can start debugging your application in IntelliJ.

Leave a Reply

Your email address will not be published. Required fields are marked *