debugging openBD

One of the things that as a developer, I have to say that I love my debugging. And the easier it is the better I like it, and eclipse has got to have one of the best IDE's that allows this to happen easy and efficently.

So how can this be applied to openBD? Ok if you have downloaded the source, one of the things that most people will want to do now is look at ways to add functionality to the product. And to do this they will need to look at tools that are set aside for the job.

Once you have sucessfully added openBD to your eclipse, and have succesfully compiled it. The next step is to add the dynamic facet for Eclipse, this will then allow us to debug our code and run tomcat all within the Eclipse IDE.

So lets do this.

On your project name (mine is called openBlueDragon) we will RMB and select properties from the pop up menu, and we will then select Project Facets. We then need to modify the project, and add the Java and Dynamic Web Module.

Once this is done we now also need to add a server to run our application on, I have always chosen tomcat as this is what I have installed. So to do this we then go to window->preferences and then select server->Installed Runtimes and add the version of Tomcat that you have installed. Following the config options is very straight forward, and should not run into any troubles.

Thats pretty much it.

Now from here when we select our project name and RMB and got to run as, you will notice that there is now a new option Run on Server. When selecting this we can now run tomcat and browse the application in the internal browser, this is also fairly straight forward to get up and running.

Now you can break point your code, and run the tomcat installation in debug mode and the break point when reached will then fire the debugger for you to do what you need to then do.

I hope this helps as much as I know it will.