patchFreeciv - Patches: patch #6563, More useful Lua output for...

 
 
Show feedback again

patch #6563: More useful Lua output for interactive debugging

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Sun Nov 8 14:24:29 2015  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun Nov 8 14:24:29 2015, original submission:

When I'm interactively poking server Lua from the chat line as a sort of REPL, the minimum invocation to print most values is

e.g.

It would be nice to have something more convenient.

print() is currently no good because it outputs to stdout. This happens to work if you're on the server console, but not if you're a client with 'hack' access using the chatline.

It might be nice to just print the values of expressions, although this doesn't seem to be a standard part of the lua(1) REPL.

(In fact, now I check, the client Lua console has the same problems. print() goes to the client's stdout.)

Jacob Nevins <jtn>
Project Administrator

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jtn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Error: not logged in

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup