pkulchenko / MobDebug

Remote debugger for Lua.
Other
889 stars 192 forks source link

breakpoints helpers #78

Open E-Fir opened 2 years ago

E-Fir commented 2 years ago

Problem: Breakpoints sometimes are not working. I'm using MobDebug thru IntteliJ EmmyLua plugin and run scripts on

  1. Ubuntu in WSL
  2. external hardware with embedded Linux and its filesystem mounted using sshfs-win

Reason: the root sources directory is not always detected correctly. Breakpoints are set using full paths to sources but aren’t considered as sources from the root directory. Solution 1: add options to manually set mapping of local and remote directories for breakpoints. Solution 2: add options to make possible to define manual dynamic mappers for breakpoints when simple mapping from the first solution is insufficient.