Besides its use in the web, the JavaScript programming language has become the basis of some of today's most important mobile cross-platform development tools. To enable and simplify debugging in such environments, this paper presents a novel method for debugging interpreted JavaScript code. The described method uses source code instrumentation to transform existing JavaScript programs in a way that makes them debuggable when executed in any standard JavaScript environment.