Shoutbox

[!!Very Helpfull Request!!] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [!!Very Helpfull Request!!] (/showthread.php?tid=67041)

[!!Very Helpfull Request!!] by DennisMartijn on 10-07-2006 at 07:25 AM

Everyone have encountered some error codes when using the script debugger. my idea: a special plugin like debugger, that shows the error code like the standart does, but also shows examples of solutions. like when '(' is missing, the debugger shows the same but with '(' in the code. hope you understand this, i haet bieng nto egnlihs.

P.S.: sorry if a thread like this already excists, cuz i havent seen one yet.


RE: [!!Very Helpfull Request!!] by Spunky on 10-07-2006 at 05:51 PM

The errors in the Debug window are pretty easy to understand as it gives you the line number and a brief description. I'm *kinda* working on a script that may be able to find the error number and give a better description. 

On a slightly different note, it would be good if messages could be shown in different colours. Either able to be defined by the user or black for events, green for traces and red for errors or something. It would make the window so much easier to read :p


RE: [!!Very Helpfull Request!!] by CookieRevised on 10-08-2006 at 12:26 AM

quote:
Originally posted by DennisMartijn
Everyone have encountered some error codes when using the script debugger. my idea: a special plugin like debugger, that shows the error code like the standart does, but also shows examples of solutions. like when '(' is missing, the debugger shows the same but with '(' in the code. hope you understand this, i haet bieng nto egnlihs.
Although such a thing would be nice at first sight, it is also nearly impossible and actually not so nice if you think about it*.

Same errors can be produced in all kinds of different situations and thus 'a' solution will never be 'the' solution.

Even in the case of such a simple thing as a missing parenthesis, the given solution might be waaay off from the true fix.


* You could think it would be nice for beginning programmers.

But actually since the solutions would be in many cases wrong anyways, beginning programmers would be even more confussed, teached the wrong thing, etc...

* For more experienced programmers, the solutions given would be useless as they would know what to fix.



quote:
Originally posted by SpunkyLoveMuff
On a slightly different note, it would be good if messages could be shown in different colours. Either able to be defined by the user or black for events, green for traces and red for errors or something. It would make the window so much easier to read :p
You can alter the lines in the translation files yourself to make a distinction between them.

(in fact, in the Dutch translation, a nice prefix (same prefix for all though) is given to all Plus!-produced debugging messages so you can easly see if the line is added by Plus! or by a Debug.Trace() command)

RE: [!!Very Helpfull Request!!] by Spunky on 10-08-2006 at 02:04 PM

quote:
Originally posted by CookieRevised
You can alter the lines in the translation files yourself to make a distinction between them.

Great idea. Maybe a future version will support colours though? :p

EDIT: btw, I use this custom function now in my scripts
code:
function trace(message){
    Debug.Trace("OUTPUT - "+message)
}


Makes my messages stand out a bit better
RE: [!!Very Helpfull Request!!] by MoonGoose on 10-21-2006 at 07:00 PM

Plz, help me, were can i find a debugger program???


RE: [!!Very Helpfull Request!!] by Spunky on 10-21-2006 at 07:05 PM

The debugger is included when you install Messenger Plus! Live

On the contact list:
> Click "Plus!" (in the menu bar)
> Click Show Script Debugging

In Preferences:
> Goto "Scripts"
> Click "Enable Debugging Options"


RE: RE: [!!Very Helpfull Request!!] by DennisMartijn on 10-25-2006 at 07:54 AM

quote:
Originally posted by SpunkyLoveMuff
The errors in the Debug window are pretty easy to understand as it gives you the line number and a brief description. I'm *kinda* working on a script that may be able to find the error number and give a better description. 

On a slightly different note, it would be good if messages could be shown in different colours. Either able to be defined by the user or black for events, green for traces and red for errors or something. It would make the window so much easier to read :p


that would be very usefull:D

but... the debugger doest give error codes for nothing. there has to be a database of the codes, with 'a description/a code for when the error occures'.

is there someone who knows where to find this database?
RE: [!!Very Helpfull Request!!] by saralk on 10-25-2006 at 11:30 AM

Usually if you just search google for "JScript" followed by the error code, it'll tell you more about the error.