Python debugging with PyDev and eclipse neon

Today we are gonna go through how to install PyDev on eclipse neon.

The best part of it is, it supports debugging in Python very similar to C programs where you start form main() method.

[1] Install Eclipse neon

You can download eclipse as package by clicking here, then you just need to extract it at your desired location and launch eclipse by clicking the eclipse.exe in your extracted folder.

The alternate way is to go to eclipse.org and download eclipse according to your hardware flavor i.e. 32 or 64 bit, you have options to download it as package or installer.

[2] Install PyDev on eclipse

PyDev brings support for working with Python files to Eclipse. Installing the PyDev plugin for Eclipse is very easy:

  • Go to Help -> Install New Software. Click on Add and add http://pydev.org/updates if you want the Stable version or http://pydev.org/nightly if you want the bleeding edge versions.
  • PyDev appears in the list below, choose it and follow through the dialog, giving it install permissions and it will be installed. You will need to restart Eclipse to use PyDev.
  • After installing PyDev, the first thing you wanna do is to enable PyDev debug feature which will help in debugging python scripts.

    Add Pydev Start/Stop debug server buttons

    • In the menu bar select Window -> Customize perspective…, a window Customize Perspective – PyDev will open
    • Select Command Groups Availability Tab
    • Check Pydev Debug box and OK
    • You should see 2 new buttons in your toolbar:

    EclipsePydevDebugSrvButtons.png

And there you go you are now able to debug python scripts in eclipse

Tried with: Eclipse Luna 4.4.1 and Ubuntu 14.04 and Windows 10

PS: post below your comments, if you like this post or face any errors

Cheers

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s