Join the Odoo Inner Circle to view the premium video below.
Accelerate your Odoo Development with Eclipse
Topics
Introduction: Why should I configure my development environment with an IDE?
0:00:01
Download Eclipse for IDE developers from eclipse.org
0:02:03
Taking a look at Odoo 8 source code and integration with github
0:03:03
Configuring the Odoo project inside of Eclipse with the proper run parameters
0:06:28
Launching the server from Eclipse and taking a look at the command window
0:07:09
Exploring the Eclipse IDE... syntax highlighting, tooltips, code navigation
0:08:00
Setting breakpoints to assist in debugging your Odoo application
0:08:40
Testing out breakpoints and examining variables in real-time
0:15:30
Using the debugger to step through the code to track down hard to find bugs
0:17:56

Accelerate your Odoo Development with Eclipse

Odoo Inner Circle Only

This video covers some of the features of using Eclipse to debug your Odoo applications. If you are a serious Odoo developer and you are not using any sort of break points or other debugging techniques... you do not want to miss this video.

Video Length:   22 minutes
Free With Odoo Inner Circle

Use the Eclipse IDE to debug Odoo in Real Time!

Set breakpoints to step through Odoo code

In this example we have set a break point when a sales order is created in Odoo. Now we can examine every variable and step through every line of code as it executes! Not only will you develop faster, integrating Eclipse into Odoo will help you better understand the Odoo framework.

Connect directly to GitHub and edit your code with color syntax

If you are not already debugging your Odoo applications in real time, this video is a must see! Are you tired of editing your code in nano or another generic text editor? Would you like to speed up your development with color coded syntax for Python and integrated Github updates to pull the latest source code? This video shows how you can configure Eclipse to provide you a fast efficient development environment and increase your productivity developing applications in Odoo.

Set breakpoints, step through your code, examine memory variables

After you have Eclipse properly configured to debug Odoo you can set breakpoints in any module. In this video it is demonstrated how you can step line by line through your code, drill into methods, skip over methods and use Eclipse's powerful outline feature to quickly jump to the classes and their methods. Examine critical variables in your code while it is running. Start and stop the server directly from within the IDE. This setup is a must have for any serious Odoo developer.

Dramatically increase your productivity developing in Odoo

This video provides an introduction on how the Eclipse IDE can be used to locate hard to find bugs and significantly improve the Odoo development cycle. Because setup is somewhat complex it is likely that even if you have been developing in Odoo for some time, you may not have a setup anything close to what you will see in this video. But that is why we are here... to help you figure this out. In upcoming videos we will demonstrate step by step how to configure the Eclipse debugging environment on your own workstation.

You can use any text editor to create an Odoo Python module. Why use an IDE like Eclipse?

One great advantage of Python is that you can in fact use a simple text editor to create an application. In fact throughout Odoo/OpenERP volume 1 & 2 we use very simple editors to create our modules in Odoo. However once you begin serious application development, the ability to have good text editing tools, syntax highlighting, Github integration and most importantly... real time debugging and the ability to step through code and set break points is very important. Imagine never again having to write a print statement to the console to determine the value of a variable!

What are the primary features and advantages to setting up real time Odoo debugging?

The configuration shown in the video accomplishes several major objectives.

  • Provide a clean and easy mechanism to pull the latest source code off Github.
  • Edit your code in a robust editor with syntax coloring, tool tips and a very flexible interface you can configure almost any way you wish.
  • Easily start and stop the Odoo server. 
  • Get better visibility into the exact operations of the server. See the details on the threads that are running including cron jobs, http requests, mail tasks and more. 
  • Use a powerful outline tool to quickly find the methods and classes you need to work on. No more scrolling through screens to find your code.
  • Set break points and step through your Odoo code as it is running line by line.
  • Examine objects and variables while the code is running to see the values. Catch 'one off' errors. 
  • Increase the speed you learn the Odoo framework. See inside the applications while they are running so you know exactly how everything fits together.
  • Solve the most difficult problems. Some problems are tough to track down. The ability to analyze your code in real time as it is running is vital to tracking down and fixing the toughest problems. It also makes finding the easy problems far easier!

If this is so great, why are you waiting until now to show us this stuff?

This was the question I have been asking myself since I finally got everything configured and working as you see in the video. The problem however is that configuring Eclipse with the necessary libraries and additional components that are required to get everything running would be very distracting and discouraging to someone who was just wanting to learn how to write a simple Odoo module. Still, as a serious Odoo developer myself I only wish I had taken the time to configure a robust debugging environment long ago. 

What are the basic requirements to configure this more robust Odoo development environment?

In the video, the configuration was setup for Windows. Eclipse is a first requirement along with PyDev. Another very important component is the integration with Github. In future videos we will go into more details on exactly how this environment was configured. This video is to provide a high level overview of the functionality and how the Eclipse debugger integrates with Odoo.