best practice for debugging "Generic JavaScript View"

Hi, KNIMEr :partying_face:

Did you attend the Spring Summit 2023?

This question was raised by me at Spring Summit 2023 just now. @andisa.dewi Suggest me to post here.

I find “Generic JavaScript View” is a bit hard to debug, I have to code, run, see the error, and re-code…Do we have any suggestions of how to speed up the process?

Hi @HaveF,
We used to have a debugging feature in the JavaScript Views preferences. There you can ask KNIME to create a debug-HTML that you could open in your browser and then use the developer tools to check your JavaScript code. Unfortunately this now results in a blank browser page. I will consult with our developers to see if it can be fixed!
Kind regards,
Alexander

1 Like

@AlexanderFillbrunn Great! I’m waiting your good news! :star_struck:

Hi,
I’ve got good news. My colleague @DanielBog told me that you need to add the following line to your knime.ini:

-Dchromium.remote_debugging_port=8888

This enables two extra buttons in the Generic JavaScript View and other views:
Screenshot 2023-04-21 at 15.44.39
The left one opens a Chromium window with developer tools.
I hope this helps!
Alexander

2 Likes

It is exactly what I need! Thanks for your help @AlexanderFillbrunn

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.