Does JavaScript have a mechanism for determining the line number of the currently executing statement (and if so, what is it)?
Inject the following snippet to your code:
console.debug("line:", /\(file:[\w\d/.-]+:([\d]+)/.exec(new Error().stack)[1]);