tomblind / local-lua-debugger-vscode

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

escape backslash in args #37

Closed ousttrue closed 3 years ago

ousttrue commented 3 years ago

Hello.

Backslash in args require escape.

// launch.json.
            "args": [
                "C:\\GLtfSampleModles\\2.0\\Cube\\glTF\\Cube.gltf",
            ],

This pull request escape backslash.

src.replace(/\\/g, "\\\\");

Thank you.

tomblind commented 3 years ago

Thanks for submitting this! Your fix worked in windows but didn't resolve the issue in linux, so I pushed an alternative solution that works in both: 567607b

I'll try to submit a new version to vscode soon which will contain this fix.