Skip to content

Commit 68afd14

Browse files
authored
Add --start_debug_server cmdline argument to nuttx-stm32f4 target (#1586)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
1 parent fdd31f2 commit 68afd14

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

targets/nuttx-stm32f4/jerry_main.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ print_help (char *name)
4141
jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n"
4242
"\n"
4343
"Options:\n"
44+
" --log-level [0-3]\n"
4445
" --mem-stats\n"
4546
" --mem-stats-separate\n"
4647
" --show-opcodes\n"
47-
" --log-level [0-3]\n"
48+
" --start-debug-server\n"
4849
"\n",
4950
name);
5051
} /* print_help */
@@ -233,6 +234,10 @@ int jerry_main (int argc, char *argv[])
233234
return JERRY_STANDALONE_EXIT_CODE_FAIL;
234235
}
235236
}
237+
else if (!strcmp ("--start-debug-server", argv[i]))
238+
{
239+
flags |= JERRY_INIT_DEBUGGER;
240+
}
236241
else
237242
{
238243
file_names[files_counter++] = argv[i];

0 commit comments

Comments
 (0)