Either you are a developer of Tomcat or you would like to see how the Tomcat works in a live mode, you may want to set a few break points in the Tomcat codes and to see the code in the live run. How could you set up remote debug for tomcat? Thanks for the JPDA(Java Platform Debug Architecutre) we can easily achieve this goal.
Start tomcat server with remote debug enabled with JVM parameters: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y and make sure you setting suspend=y to let the tomcat server suspend and wait for debugger to attach to it.
Start your debugger, I am using Intellij Remote Debug, and here is the settings: Host: localhost Port: 8000
I have been using pip, virtualenv, and virtualenvwrapper in Cygwin for long time, it is pretty handy to isolate my development environment for each python projects I am working on. But I still need to think about what need to be done to setup all the pip, virtualenv, and virtualenvwrapper on Cygwin. To save my time and help anybody would like to setup the stuff on Cygwin, I recorded the process as following:
Use Cygwin setup to install Python for Cygwin.
Install easy_install in your Cygwin: download and run ez_setup.py in Cygwin.
Install pip by using easy_install: eazy_install pip.
That is all, now you can create a new virtualenv in your Cygwin: mkvirtualenv my-first-env. You can use pip to install the specific packages you need for your virtualenv. To activate your virtualenv: workon my-first-env. To deactivate your virtualenv: deactivate. To remove the virtualenv: rmvirtualenv my-first-env.