I used to do it all the time too and hated having to write javascript precisely because of the toolchain limitations.
Eventually I settled for Chrome Debugger once they added the ability to map the code to a workspace folder, so I mapped the webstorm project where the files came from, closing the loop. however webstorm doesn't republish until I alt+tab to it and doesn't have a local history feature as nice as Eclipse, but it's close. also any query parameter on the scripts breaks the mapping to the files - I append a build version tag, for caching, and had to have that removed in local tests.
Already in Turbo Pascal 5.5, one would loose the context, but the compilation times were so fast that it hardly mattered.