Do you use snippets or something to help speed this up? Manually typing `printf("longvarname=%s secondvarname=%d\n", longvarname, secondvarname);` adds up over a debugging session, compared to a graphical debugger setup with well-chosen breakpoints, watches etc.
It really doesn't? I mean, sure, typing is slower than clicking (though only marginally as complexity grows, there's a lot of clicking needed to extract the needed state, and with printf I only need to extract it once and it keeps popping out as I rerun the test).
But I spend far more time reading and thinking than I do typing. Input mechanics just aren't the limiting factor here.
The first thing I always do is define log. It's bonkers to use console.log() for js. a simple window.log=console.log.
Secondly, in your example, no need to label the names. This is almost always understood by context. So, pretty manageable. e.g. in JS:
log(`${longvarname}, ${secondvarname}`)