How to get calculated attribute value script to run in browser for debugging?
2 answers
Comments
If that's the case, why is it that my console.log statements only appear in the server's .log file? Also, the break points I've set in my script in Chrome never get hit, and none of my console.log output shows up in the Chrome console. I've tried this in 2 different CLM 5.0.2 environments with both Chrome and FireBug. I really don't know what else to try.
Just tried the same thing on a CLM 6.0.1 instance. Still not able to get debug working in Chrome.
Wow, the "console.log" output is also behaving strangely in Eclipse 6.0.1. When I create a new work item in Eclipse, the "console.log" output show up in the Eclipse"Error Log" view. These also show up in the local workspace .log file. However, with all subsequent updates to the work item, the "console.log" output only shows up in the server log (nowhere else). This is not helpful when working in environments where I don't have access to the server.
You have to debug in the Web UI and not in the Eclipse UI - obviously. The Eclipse UI does not use Chrome, and you can not debug there at all, except Java Based extensions.
See
https://rsjazz.wordpress.com/2016/06/17/javascript-attribute-customization-where-is-the-log-file/
Works like a charm for me. Calculated value, dependency set to Summary.
?debug=true set for debugging. New work item created. In debugger browsed to script and set break point. Entered data in summary, changed focus and the breakpoint hits.
RTC Version 6.0.1 The tool is fine, the problem seems to be what you are doing.
Thanks for checking it out in 6.0.1, Ralph. I will keep playing with it till I figure out what I'm doing wrong.
Comments
Donald Nong
Jul 21 '16, 5:06 a.m.The script can run on both the client and server. It is possible that your script does not get triggered when using Chrome. Check the console for other errors even they seem unrelated.