All Apps and Add-ons

When debugging a Splunk App's JavaScript in VSCode the breakpoints are moved forwards by several lines

John235711
Engager

I'm using VS Code and the "Debugger for Chrome" plugin to debug my Splunk App's Javascript code. Whenever I start a debug session the red dots that represent the breakpoints are moved several lines forwards. Using Chrome DevTools it appears that the following two lines are being injected by Splunk at the beginning of my JavaScript file:

// Translations for en_GB
i18n_register({"plural": function(n) { return n == 1 ? 0 : 1; }, "catalog": {}});

I believe that this is the reason for the breakpoints changing their location.

Is there a way to stop Splunk from injecting these two lines? If not, is there any known workaround for VS Code or other Javascript debugging tools?

Tags (1)

aprummer
Explorer
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...