[ 
https://issues.apache.org/jira/browse/TINKERPOP-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231344#comment-15231344
 ] 

Ariel Weisberg commented on TINKERPOP-1157:
-------------------------------------------

If you start gremlin.sh and pass it as a parameter a file to execute I would 
like it to stop upon reaching the first parse error or uncaught exception and 
become an interactive shell so I can inspect the state of the program.

Something like {{python -i}}
{noformat}
     When  a  script  is  passed as first argument or the -c option is used, 
enter interactive mode after executing the script or the command.  It does not 
read the
     $PYTHONSTARTUP file.  This can be useful to inspect global variables or a 
stack trace when a script raises an exception.
{noformat}

Maybe something does exist for [groovy 
2.4?|https://groups.google.com/forum/#!topic/groovy-user/LaSEv3Sxivw]


> gremlin.sh should allow you to execute a script and go interactive on error 
> or completion
> -----------------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1157
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1157
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 3.1.1-incubating
>            Reporter: Ariel Weisberg
>
> This may be specific to my workflow, but generally when I am 
> learning/experimenting with a REPL I have one window open with my script and 
> another console open that I use to run it. I like to restart the REPL every 
> time to avoid lingering state.
> I would like to be able to drop back to interactive executing a script once 
> it completes and my data is loaded and any queries I may have run are 
> complete and I can inspect the results.
> On error I want to drop to interactive so I can inspect the current state at 
> the time the error occurred.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to