It's all about the answers!

Ask a question

RTC 6.0.5 Java script calculated values how to debug?


Rafael Rodriguez Montes (23013130258) | asked Jun 30 '19, 3:57 p.m.

 Hello, 

I'm trying to print out the error codes of the java script, I tried to watch the console and it prints the console.logs, but when it crahses it just don't do anything, I would like to see if there is any way to print out the error or why is crashing, there is nothing on the browser in the console where I can see the error. 
is there another place for the logs or do I need to enable something for debugging the java scripts hooked to the attributes?


Comments
Rafael Rodriguez Montes commented Jun 30 '19, 7:25 p.m.

 I wanted mention that I tried to catch the errors using typical catch and visualize them on the consol.log, but I can't find them. 

I'm using chrome as browser. 

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Jul 01 '19, 2:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 01 '19, 4:30 a.m.

 See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Debugging_scripts . Chrome and its built in development tools and debugger works best for me.


I also added a bit of information in the last 2 labs here: https://jazz.net/library/article/1093

When using Websphere Liberty Profile the location of the server .log file that contains console.log() information and crash info for scripts is in installDir\server\liberty\servers\clm\workarea\org.eclipse.osgi\90\data\temp\default_node\SMF_WebContainer\ccm\ccm\eclipse\workspace\.metadata 

Your answer


Register or 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.