Section of information on issue that may arise.

I get a Script is taking to long message when using the profiling code. This is probably a result of one or more functions that are being profiled being called a lot of times. Press the "Continue" button it this occurs and wait to the application finishes then take a "Snapshot".

You can also filter the code you want to profile so less statistics are being capture which will help.

Relative Paths don't work on a J2EE server. Yes I know, use absolute physical paths to resources.

Can't save files on a J2EE server. You may need to open up the security of the server slight to allow direct file access.

jsLex overwrote my source files. Make sure you back up your files before using the tool.

After compression the dojo build system stops working. Make sure you leave all the end or line characters. The build system looks for the "dojo.requires("something");" seperate lines.

The jsLex profiling window doesn't open.

Make sure the popup blocker is turned off for your page, or relaunch it and hold down the "Ctrl" key.

If you are having problems drop me an e-mail bbuffone [at] gmail [dot] com

eval calls fail

This may be a result of the function parameter and variable name compression. For example,

function foo(object, methodName) {
eval("object."+methodName+"()");
}

after compression it becomes something like,

function foo(_1,_2){
eval("object."+_2+"()");
}

You can turn off the compression of names by setting the compressNames attribute of the jsLex ant task to be "none". If you are using the supplied build.xml file you can do this easily be change the following line.

property name="compress.names" value="normal"

becomes

property name="compress.names" value="none"

'I am using IIS

You can specify the profile file in the openProfileWindow function and it will just loaded the file. Check out the Configuring your Application

"Resulting configuration does not contain the platform"

Ran into this error installing the plugins in Aptana. I restarted Aptana and deleted my existing jsLex plugins and retried.