rbhkamal Posted July 19, 2006 Share Posted July 19, 2006 After going through this, I had an idea that might be good for every one. Add an option e.g "DebugSetError" which enables or disables MsgBox and ConsoleWrite () ability to reset @error.I'm sorry for being in the last post but cleaning the debug lines is getting very hard on me when writing codes more that 3000 lines .(If I saved the @error) I'm trying to reach out for a solution, please consider this idea and if not please provide another.Thanks,RK "When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix Link to comment Share on other sites More sharing options...
Developers Jos Posted July 19, 2006 Developers Share Posted July 19, 2006 (edited) After going through this, I had an idea that might be good for every one. Add an option e.g "DebugSetError" which enables or disables MsgBox and ConsoleWrite () ability to reset @error. I'm sorry for being in the last post but cleaning the debug lines is getting very hard on me when writing codes more that 3000 lines .(If I saved the @error) I'm trying to reach out for a solution, please consider this idea and if not please provide another. Thanks, RKAs mentioned in the previous thread on this (if my memory serves me right) it was already mentioned that MsgBox and ConsoleWrite are also used for other purposes so you cannot do something you are proposing. Just don't use this: Function() ConsoleWrite(@Error) If @error thenoÝ÷ غǬ¢g)à)¶¬¶¬²o{*.®ènW¦jëh×6Function() $lastError = @Error ConsoleWrite($LastError) If $LastError then Edited July 19, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
rbhkamal Posted July 24, 2006 Author Share Posted July 24, 2006 OK, one question please. I changed debug lines in AutoIt.lua to: elseif option == 1 then editor:AddText("\r\n" .. tabs .. "local $DEBUG_SAVE_ERROR = @error ;### Debug Console \r\n" .. tabs .. "ConsoleWrite('@@ Debug('&@ScriptLineNumber&') : " .. word2 .. " = ' & " .. word .. " &' >>Error code: ' & $DEBUG_SAVE_ERROR & @lf) ;###8888 Debug Console\r\n" .. tabs .. "SetError($DEBUG_SAVE_ERROR) ;### Debug Console\r\n\r\n" ) oÝ÷ ÙhZ¶ÈhºWm«ijÛ^®vÞ~Ãy» 騽ébë"Ýz»h騽æ¥X§zËajקw«¨·Ï But that didn't work. Thanks RK "When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now