Skip to main content

Posts

Showing posts from January, 2015

Remote Debugging A Java Process Using IntelliJ

This is a brief post on something that is rather very important. Your company probably handed you a macbook or laptop and have a Linux VM hosted somewhere, that you will do all your development on. And now the circus begins. You like to stay on your laptop since you get all the nice IDEs and Code diffing tools and what not. But, your code only runs on the VM, rightfully so in the highly SOA ( Service Oriented Architecture , basically meaning everything is REST and has nagios alerts). So, here's how to get the best of both worlds. Pre-requisite: Use a tool like unison  or Bittorrent sync  or roll your own scripts to rsync your local repo on laptop with a directory on your VM. End state would be You git clone or svn checkout on VM Syncing gets it down to your laptop From there on you make code changes on your IDE and syncing reflects them on VM Most of all, it means that intellij can look for the source code for the classes you debug, on your repo on your laptop. No