I'd like to use debug to be able to print method / function names and arguments on every call.
What's the best way to achieve this instead of placing customized debug statements in every function like this:
async function getFilePaths(path, id) {
debug(`async function getFilePaths(path = ${path}, id = ${id})`);
// ...
}
console.trace(), though I only recommend using it in the console window. I haven't tested with IE10+, butconsole.trace()andconsole.debug()broke IE 9 unless the developer window was open.