ide

Start Komodo with Clean Profile

Question: 

How can I easily start Komodo with a clean profile?

Answer: 

Sometimes when you're using Komodo you may run into issues or want to see what your default settings were many customizations later.

In either case, you or the Komodo dev team will want you to start Komodo with a clean profile. One way is to manually move your profile aside using the instructions provided in another general FAQ post about Komodo File Locations.

Another easier and less error prone way is to use the KOMODO_USERDATADIR environmental variable:

  • Stop Komodo if it is running (this is optional, the following allows you to running multiple instances of Komodo)
  • Open a command line or Terminal window
  • Set KOMODO_USERDATADIR to a path of your choosing. eg.

     

    set KOMODO_USERDATADIR=%TEMP%\ko #Windows

    or

    export KOMODO_USERDATADIR="/tmp/ko" #unixy

  • Start Komodo from the same commandline window, eg  /path/to/komodo (or just komodo if it's on your PATH).

Komodo will then start with a completely clean profile with all default settings.

- Carey

Komodo License not Working

Question: 

Why won't Komodo allow me to do the 21 day trial? Or let me use my actual license?

Answer: 

If you're having trouble starting your Komodo trial or it won't pick up your freshly purchased and installed license, there are a few things you can try to work around the issue:

Trial Issues:

  • A. Download a new Komodo installer and reinstall Komodo
  • C. Contact support@activestate.com and tell them you're trial license won't start and they should be able to help.

License Installed but not Used:

  • A. Download a new Komodo installer and reinstall Komodo
  • C. Do the same as the last step but also download your license installer again from account.activestate.com
  • D. Contact sales@activestate.com and tell them you're license won't work and they should be able to help.

Note:
- If you already have a previous Komodo license you are STILL ENTITLED to a Komodo trial of whatever the new version is.

Custom Break Points in Komodo

Question: 

How do I set and understand Komodo custom break points?

Answer: 

To SET a custom breakpoint in Komodo you simply right click on the line you want the breakpoint to be on then select "Add/Edit Breakpoint". That's the easy part.

For customizing custom breakpoints, take a look at Komodo Breakpoint Properties documentation.

Here is my explanation and some examples of each tab.

Conditional

With a Conditional breakpoint, you set an expression that when it evaluates to true, the script will break. For the following I will set the Condition field to a%2==0

a = 0
while a < 10: #it will break here when a is 0,2,4,6,8,10
    a += 1    #you can see this in the Locals debug tab

NOTE: If you were to set the Hit Count field to "Break when hit count is a multiple of: 2" in the File tab when editing the breakpoint, you would get the opposite, eg. 1,3,5,7,9.

Watch

Watch a variable and stop when it changes

a = 0
print a
while a < 3:
    if a % 2 == 0:
        pass
    else:
        a += 1
    print a  #This will NOT break the first loop through the while.
    a += 1

Function Call

Break when the specified function is called before the breakpoint.

 
def foobar():   #breakpoint will break here at function start
    print "foobar will return :|"
a = 0
print a
while a < 10:
    if a % 2 == 0:
        a+=1
    else:
        print "foobar's going to run! WOOH!"
        foobar()
        a += 1

NOTE: Red dot will not appear for either Function style or Exception style breakpoints. Check breakpoints tab in bottom pane to see them.

Function Return

This is similar to Function Call, only it stops when the function returns. In the above example it would break at the last line of the function, ie. print "foobar will return :|"

And finally,

Exception

This type will break when an Exception is hit in your code and you have written code to handle that Exception and allow the script to continue running. In this example you would write TypeError in the Exception text field under the Exception tab.

a = "0"
try:       #Without an Exception breakpoint, this will run
    a += 1 #With an Exception breakpoint, it will stop here
except:
    a = 0
print a

Hope that helped.

Cheers,

- Carey GC Hoffman

Extending Komodo IDE trial

Question: 

How do I extend my Komodo IDE trial license?

Answer: 

To extend your Komodo trial license past the initial 21 days, please contact
sales@activestate.com.

Komodo IDE Trial won't start

Question: 

When I start Komodo IDE 4.0.0 for the first time, I get a dialog that says 'Your license is incompatible with this version of Komodo', and an option to buy or upgrade. What is going on?

Answer: 

We have discovered a problem affecting some Trial users of Komodo 4.0.0 where they will not be able to start a 21-day trial on the first start of Komodo. This is now fixed in Komodo 4.0.1:

ftp://ftp.activestate.com/Komodo/Windows/4.0/Komodo-IDE-4.0.1-274919.msi