mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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
This commit is contained in:
parent
fdd31f20b5
commit
68afd14f7c
@ -41,10 +41,11 @@ print_help (char *name)
|
|||||||
jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n"
|
jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
|
" --log-level [0-3]\n"
|
||||||
" --mem-stats\n"
|
" --mem-stats\n"
|
||||||
" --mem-stats-separate\n"
|
" --mem-stats-separate\n"
|
||||||
" --show-opcodes\n"
|
" --show-opcodes\n"
|
||||||
" --log-level [0-3]\n"
|
" --start-debug-server\n"
|
||||||
"\n",
|
"\n",
|
||||||
name);
|
name);
|
||||||
} /* print_help */
|
} /* print_help */
|
||||||
@ -233,6 +234,10 @@ int jerry_main (int argc, char *argv[])
|
|||||||
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
return JERRY_STANDALONE_EXIT_CODE_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (!strcmp ("--start-debug-server", argv[i]))
|
||||||
|
{
|
||||||
|
flags |= JERRY_INIT_DEBUGGER;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
file_names[files_counter++] = argv[i];
|
file_names[files_counter++] = argv[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user