Chrome doesn't seem to pick up file:// URLs, so we need to serve via HTTP.
Both the map file and the original file need to be served.
Perhaps data: URLs work out of the box?
Debugger.setBreakpointByUrl is called with the URL of the original file (e.g. coffee file) and a line in that file, so we need to do manual source map translation.
Nashorn understands sourceURL and uses it as source name. This means that we cannot read the script source using the source name, because we might read e.g. CoffeeScript code instead of JS code.
Challenges:
Debugger.setBreakpointByUrl
is called with the URL of the original file (e.g. coffee file) and a line in that file, so we need to do manual source map translation.