issue #82 undo change that broke the debugger

pull/93/merge
Dibyendu Majumdar 8 years ago
parent ec55c52d57
commit ce99b4927f

@ -893,7 +893,7 @@ json_value * json_parse_ex (json_settings * settings,
};
}
if ( (++ top->parent->u.array.length) > (int)state.uint_max)
if ( (++ top->parent->u.array.length) > state.uint_max)
goto e_overflow;
top = top->parent;

@ -86,7 +86,7 @@ enum {
MAX_BREAKPOINTS = 5,
MAX_STACK_FRAMES = 50,
MAX_SCOPES = 4,
MAX_VARIABLES = 125,
MAX_VARIABLES = 120,
MAX_THREADS = 1,
SOURCE_LEN = 8196,
MAX_TOTAL_BREAKPOINTS = 20

@ -15,6 +15,7 @@
#include <fcntl.h>
#include <io.h>
#define chdir _chdir
//#include <windows.h>
#else
#include <unistd.h>
#endif
@ -844,6 +845,7 @@ static void debugger(lua_State *L, lua_Debug *ar, FILE *in, FILE *out) {
/* Wait for debugger command */
bool get_command = true;
int command = VSCODE_UNKNOWN_REQUEST;
//Sleep(60 * 1000);
while (get_command &&
(command = vscode_get_request(in, &readbuf, &req, my_logger)) != VSCODE_EOF) {
switch (command) {

Loading…
Cancel
Save