sokolovstas / SublimeWebInspector

Web Inspector allow you debug Javascript right in the editor

Home Page:http://sokolovstas.github.com/SublimeWebInspector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requires local copy of file to debug

danmoseley opened this issue · comments

Currently it only consults the list of folders in the Sublime "project" (eg., from doing File>Open Folder) when it tries to map an open file to a URL. This means if you just open a file directly, you can't set a breakpoint in it.

Two possible fixes -

  • When toggling a breakpoint in a file that doesn't have a mapping, attempt to use the file's path to come up with a mapping right there.
  • Broader change: whenever a mapping is needed, ie., whenever a break is hit -- or whenever a new file is opened -- attempt to use the open files' paths to augment the mapping table.

Workaround noted here

It now consults opened files, as well as folders (6baa344) but still needs to fall back to pulling the script from the browser.