Bookmark This Page

HomeHome SitemapSitemap Contact usContacts

Cheat Codes For Pokemon Ruby

If youíre new to programming in Ruby, here are the 3 tools you must know.


The Ruby debugging tool can be found in the library file debug.rb. This tool will let you run your program one instruction at a time, with pauses in between. At every pause you can examine the values or variables of your code, locate your position in a series of nested commands and/or resume execution. You can also tell the debugger when to stop, more commonly known as breakpoints.

Using a debugger varies from programmer to programmer. Just because a debugging facility is available for Ruby, it doesnít mean that a novice programmer should quickly adapt himself to using it at once. There are programmers who are comfortable using a debugger, some arenít. Itís a matter of preference but at any rate, itís nice to know that thereís a tool available for Ruby.


Eventually, when you start writing longer programs, youíll want to measure how much resources, especially time, is used up by parts of your program or as a whole. This is called profiling.

You can do profiling using the command $ ruby -r profile c2fi.rb

Profiling identifies the areas in your program that are using up lots of the system resources. Having identified these areas, you need to re-code your program to make it run efficiently.


Probably the coolest tool of them all, Ruby provides you with a program called ERb (Embedded Ruby), which allows you to put Ruby code inside an HTML file. You get to embed Ruby inside non-Ruby, and interprets the whole thing as program input.

In the Philippines, Ruby on Rails is one of the popular choice of programming tool by most developers. Exist Global is one of the companies who use, hone talents and advocates the use of Ruby on Rails among other open source technologies.

Shawn Marquez is a freelance developer / writer