Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » Stop the code on error
Stop the code on error [message #1416596] Mon, 13 August 2012 05:20 Go to next message
Anthony Liew is currently offline Anthony LiewFriend
Messages: 2
Registered: August 2012
Junior Member
Hi guys,

I just want to know one thing.

How do I make it so that when an error occurs when debugging with Koneki, how do I pause execution and perform a custom function?

Is there something I need to change in debugger.lua or debuginstospection.lua?


Please reply at your earliest convenience, this issue has been plaguing my development time, and I'm really desperate.
Re: Stop the code on error [message #1416606 is a reply to message #1416596] Fri, 17 August 2012 22:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi Anthony,

Not sure I get your question :/ What do you mean by "when an error occurs when debugging with Koneki"?

Thanks for taking time to clarifying, hopefully I can help you then!
Benjamin
Re: Stop the code on error [message #1416608 is a reply to message #1416606] Sun, 26 August 2012 20:14 Go to previous messageGo to next message
Eclipse UserFriend
I think he wants to perform that custom function when he is debugging in the eclipse-distribution "Koneki". So: he want to run some javacode when the debugger notes an lua-related error. (Am I right?)
Re: Stop the code on error [message #1416614 is a reply to message #1416608] Wed, 29 August 2012 09:31 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 76
Registered: July 2009
Member
Anthony, Benedikt,

I am not sure to understand fully your needs but here some points:


Currently the debugger is not able to launch custom java code, and I don't understand the goal to run Java code on error instead of lua code. Maybe you can explain what have to do the code you want to run.
Currently the debugger is not able to stop on error as the Java debugger can stop on exception. But it's will be a nice feature I think, so I have created this bug as a feature request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=388301
Feel free to discuss about this feature by commenting the bug.
To execute some code when errors occurs in lua, use pcall as explained here:
www.lua.org/pil/8.4.html


Regards,
Marc
Re: Stop the code on error [message #1416617 is a reply to message #1416614] Wed, 29 August 2012 11:21 Go to previous message
Eclipse UserFriend
I just thought he would work around with the debugging-perspective.
I also develop Python and Java stuff. You can run a little bit of java when in python an error occurs (so it pauses and did not stop/exit). it runs python-code, but on an error you can Java-code(I am talking of plugin-code). I thought he meant that, but maybe ... he meant something other...
Previous Topic:Re: Code Formatter, Code Assistance and Outline do not work
Next Topic:Re: Code Formatter, Code Assistance and Outline do not work
Goto Forum:
  


Current Time: Sun Nov 18 07:36:23 GMT 2018

Powered by FUDForum. Page generated in 0.02096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top