Gvin / LongOS

Open-source OS for ComputerCraft
3 stars 0 forks source link

traceback/stacktrace #33

Open theoriginalbit opened 11 years ago

theoriginalbit commented 11 years ago

Consider adding a system for getting the stack trace.

oh also maybe even a method of logging from a program and such

Gvin commented 11 years ago

"Consider adding a system for getting the stack trace." It is very interesting idea but I don't see any possibility to do this now. Maybe in future.

"oh also maybe even a method of logging from a program and such" Every program can call this methods:

You can find the log file in "/LongOS/Logs/runtime.log". Please correct me if it was not what you wanted to say.

theoriginalbit commented 11 years ago

Yeh the way of getting the stack trace is definitely a hack since we don't have access to Lua's debug API, but stack traces, as I'm sure you know, can be very handy for developers.

As for the logging, I'm sorry that I missed those files. You can ignore that part of the suggestion.