
How to Debug Javascript in Vidispine Using Eclipse by Patrik May 31, 2016 Tips & Tricks
Vidispine uses Javascript to handle more complex workflows than what can be handled with the out-of-the-box solution. When involving a language you also want to be able to debug what you write. It's simple to set up Eclipse to debug Javascript in Vidispine. It's also possible to debug Javascript inside a shape or during a transcode.
While Vidispine can manage a lot situations straight of the box, most users will sooner or later have to customise parts of their workflow, and do custom integrations. With Vidispine you can use Javascript to extend operations in for example job tasks, transcode presets or naming scripts. The export template functionality is also an example of where Javascript is needed. When you extend beyond the most simple scripts you will probably need to debug your system, and add automatic regressions testing.
Setting up Eclipse to debug Javascript in Vidispine has been available since version 4.0.3. It's straightforward and covered well in the API documentation. Just make sure that you enable the Remote JavaScript configuration option in Eclipse.
When you want to debug scripts on shape tags you should use the test script endpoint on shapes GET /shape-tag/(tag-name)/item/(item-id)/shape/(shape-id), which executes the script against a specific item/shape and return the resulting transcode preset, which can then be verified. This method can also be used to set up regression tests/automatic tests for your transcode presets.
The JavaScript debugging also works with transcode preset scripts. Set debugJavaScript to true , then transcode using your preset. The transcode job will block once the script is executing and you can connect using the debugger. Use GET /javascript/session to list the active debugging sessions, which helps you find the right session and port to attach to.
What about all the generic code I have in several places
Ok, now you have written a bunch of Javascript snippets, and you realise that you have the same code in several places. For example, you have the same re-naming script on several different storages. We have a solution for that as well. You can register generic Javascript code in a type of global library. The code in the global library will be executed before the specific code. Best is to keep the code in the library are functions only. The generic Javascript is created using configuration properties of the form javascript-{extension} , where extension is any suffix.
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Cine Gear Connect NY, presented by Universal Production Services, is filling in the slate for a full day of panels, peers, learning the latest, and mixing it up...
21/03/2026
Studio Technologies Debuts New StudioComm System at NAB 2026
Brie Clayton March 20, 2026
0 Comments
StudioComm Model 794 Central Controller and Model ...
21/03/2026
Restoration Christian Fellowship Captures Worship Music Videos with PYXIS 12K
Brie Clayton March 20, 2026
0 Comments
PYXIS' open gate provides cre...
20/03/2026
Net Insight will introduce a JPEG XS solution for full IP environments at NAB Sh...
20/03/2026
LTN has expanded its technology partnership with Harmonic ahead of the FCC's...
20/03/2026
Solid State Logic will preview SSL Live V6.2 at NAB Show, booth C6907. The softw...
20/03/2026
FUJIFILM North America Corporation's Optical Devices Division has announced ...
20/03/2026
FUJIFILM North America Corporation's Optical Devices Division has announced ...
20/03/2026
TrueVisions NOW, a streaming platform in Thailand and part of the TrueVisions Group, has selected Bitmovin's Observability product for real-time video analy...
20/03/2026
Marquee Sports Network has announced distribution agreements with Hulu + Live TV and Prime Video ahead of the 2026 MLB season.
Marquee Sports Network is now av...
20/03/2026
FOR-A will exhibit software-defined and AI-driven solutions at NAB Show 2026, bo...
20/03/2026
TNA Wrestling and Eurosport India have entered into a multi-year exclusive progr...
20/03/2026
When Athletes Unlimited brought its professional women's basketball season t...
20/03/2026
In this craft interview, Rick Bernier reflects on a career that has taken him to...
20/03/2026
Lawo will announce a new product ahead of NAB Show 2026 in Las Vegas, where it w...
20/03/2026
Ratings Roundup is a rundown of recent rating news and is derived from press rel...
20/03/2026
Major League Baseball (MLB) has named Polymarket as its Official Prediction Mark...
20/03/2026
With AI now the industry-wide priority, Big Tech companies are uniquely position...
20/03/2026
In-venue and creative video staffers at the professional and collegiate level ha...
20/03/2026
Abundant player mics and RF and other ground-level cameras will be used to captu...
20/03/2026
Regional site will also receive big boost in production resources, including on-...
20/03/2026
By Jessica Herndon
One of the most exciting things about the Sundance Film Fest...
20/03/2026
In 2021, we launched EQUAL, a program designed to address an industry reality that persists: Women artists, songwriters, and producers too often face fewer oppo...
20/03/2026
BTS' long-awaited fifth studio album, ARIRANG, is finally here. To celebrate...
20/03/2026
A new era for Kenia Os has arrived, and Spotify marked the moment by putting fan...
20/03/2026
Una nueva era para Kenia Os ha llegado, y Spotify marc el momento poniendo a lo...
20/03/2026
Combines sampling & physical modelling
Sound Magic have announced the launch of a comprehensive virtual drum instrument that's been designed to cater to...
20/03/2026
How much difference should mastering make?
In our latest Mix Rescue feature, SOS Editor in Chief Sam Inglis revisits a project from back in 2019, carrying o...
20/03/2026
Feast for cycling fans as SBS extends road cycling broadcasts to include all Gra...
20/03/2026
In this blog, Laura Rognoni reflects on key discussions from the Connected TV World Summit in London, where NAGRAVISION hosted a panel on content discovery and ...
20/03/2026
After a series of increases, February brought the first slowdown in time spent in front of TV sets in a long time. While traditional television was losing viewi...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
60 years of audio innovation, driven by the people who use it...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Colombia's Icesi University and WSDG are proud to announce Ronald David Reyes as the recipient of the 2025 WSDG Excellence Scholarship, awarded to an outsta...
20/03/2026
Avid today celebrated the filmmakers, editors and sound teams that worked with Avid Media Composer and Pro Tools to create the vast majority of this year'...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...