Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Evaluate Execution Environment of an attribte script

Hi all,

I recognize a different behavior between Web and Eclipse Full Client related to the execution of attribute scripts, e.g., during the save process of the work item it seems that a script is executed once in in the Web and twice in the Eclipse Client.

Therefore I'd like to know if there exists the possibility to evaluate where the script is executed to trigger the right action.

Many thanks and cheers
Matthias

0 votes

Comments

I forgot to mention that we are using 3.0.1.5



2 answers

Permanent link
Matthias,

it depends on what type of script and potentially what type of dependent attributes, when and how often it is run as well as if it is run in the client or on a server (validation, condition).

 Using the Web UI you can debug scripts (best using Chrome), but since the scripts are run in an internal Script engine, I don not believe you can debug their environment.

0 votes


Permanent link
i usually take help of console.log and breakpoints.

from my observations, if the break point is hit, the script is executing on the client side and you would see the text from console.log recorded onto the firebug console window in case of web ui and into the eclipse workspace .metadata/.log file in case of eclipse client.

if the break point is not hit and then I would assume the script was run on the server

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,130
× 42

Question asked: May 24 '13, 4:34 a.m.

Question was seen: 5,390 times

Last updated: May 24 '13, 9:01 a.m.

Confirmation Cancel Confirm