tomblind / local-lua-debugger-vscode

Local Lua Debugger for VSCode
MIT License
107 stars 26 forks source link

Fixed breakpoints not work #71

Open rewqazxv opened 2 years ago

rewqazxv commented 2 years ago

When debugHook is triggered, it tries to find out which breakpoint caused the callback by comparing the file path of breakpoint with the file path of the current source. But the comparePaths function cannot handle complex paths such as those containing .. (#62).

Changing comparePaths to simply compare absolute paths fixes the problem.