issue #82 add breakpoint support

pull/84/head
Dibyendu Majumdar 8 years ago
parent 5acce29b91
commit 3aeff1de34

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

@ -35,3 +35,10 @@ Install the debugger extension as follows:
3. Copy the file `vscode-debugger/vscode/extensions/dibyendumajumdar.ravi-debug-0.0.1/package.json` to the directory `.vscode/extensions/dibyendumajumdar.ravi-debug-0.0.1`.
Now when you open a directory containing Lua programs VSCode should allow you to launch a debug session. You will need to change the launch parameters as required but note that right now `LUA_PATH` and `LUA_CPATH` are not passed on to the debugger.
Screenshots
-----------
.. figure:: ../readthedocs/debugger-screenshot1.jpg
:alt: Ravi Debugger screenshot

@ -263,6 +263,7 @@ static int vscode_parse_set_breakpoints_request(json_value *js, ProtocolMessage
if (element->type != json_object)
return VSCODE_UNKNOWN_REQUEST;
int line = get_int_value(element, "line", log, &found);
fprintf(log, "Set breakpoint line = %d\n", line);
msg->u.Request.u.SetBreakpointsRequest.breakpoints[i].line = found ? line: -1;
}
msg->u.Request.request_type = msgtype;

Loading…
Cancel
Save