provegard / ncdbg

A debugger for Nashorn that uses Chrome DevTools as frontend
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Figure out column numbers in Nashorn code #35

Closed provegard closed 7 years ago

provegard commented 7 years ago

JDI Location only gives line number, and we may get multiple Location instances that refer to the same line of JS code. Try to figure out the column number by parsing the original source into an AST.