emacsensime

Unable to start Ensime debugger in Emacs


I am using Emacs 24.5.1 scala 2.11.5 with ensime. Ensime server runs fine with all error suggestion and other IDE feature etc. But when I start debugging code with M-x ensime-db-attach it prompt with me Hostname and Port. Which port is it asking for? I want to debug my code locally.


Solution

  • Executing sbt -jvm-debug 5005 from scala home directory resolved the problem. Also in Emacs M-x ensime-db-attach when prompted let Hostname be localhost and Port be 5005.