tomblind / local-lua-debugger-vscode

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

Printing problems #14

Closed Cr4xy closed 4 years ago

Cr4xy commented 4 years ago

Printing {{}} prints }}

This code causes the debugger to stop working/hang:

print("{method = \"test\"}")
print("{{}}")
tomblind commented 4 years ago

I can't seem to reproduce this. Can you show me your launch.json config?

Cr4xy commented 4 years ago

I think it might be because I'm using a logger (http://neopallium.github.io/lualogging/manual.html). I'm seeing this printed in the console:

{
  "threadId": 32,
  "breakType": "breakpoint",
  "tag": "$luaDebug",
  "type": "debugBreak",
  "message": "breakpoint hit: \"...\""
}

Here's my launch.json:


{
  "name": "Local Lua Debugger",
  "type": "lua-local",
  "request": "launch",
  "cwd": "${workspaceFolder}",
  "program": {
    "lua": "lua5.1",
    "file": "${relativeFile}"
}
...
tomblind commented 4 years ago

In theory the logger shouldn't conflict with the debugger. I actually managed to reproduce this in one of my own projects the other day. As soon as a get some time, I'll try to debug and fix this.

tomblind commented 4 years ago

I've just published a new version (0.1.6) which I hope will fix this issue for you. Please let me know if it does (or doesn't).

tomblind commented 4 years ago

Closing this for now since as far as I know, it's fixed.