Add command line option to exception and display commands
You can now set --display and --exception parameters in the command line.
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla
@@ -81,6 +81,10 @@ def arguments_parse():
help="disable stop when newline is pressed (default: %(default)s)")
parser.add_argument("--color", action="store_true", default=False,
help="enable color highlighting on source commands (default: %(default)s)")
+ parser.add_argument("--display", action="store", default=None, type=int,
+ help="set display range")
+ parser.add_argument("--exception", action="store", default=None, type=int, choices=[0, 1],
+ help="set exception config, usage 1: [Enable] or 0: [Disable]")
args = parser.parse_args()
@@ -894,6 +898,12 @@ def main():
prompt.prompt = "(jerry-debugger) "
prompt.non_interactive = non_interactive
+ if args.display:
+ prompt.do_display(args.display)
+
+ if args.exception:
+ prompt.do_exception(args.exception)
+
while True:
if not non_interactive and prompt.cont:
if sys.stdin in select.select([sys.stdin], [], [], 0)[0]:
