View previous topic :: View next topic |
Author |
Message |
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sun May 02, 2004 1:22 pm Post subject: Errorlog Creator released |
|
|
Hi, I've released a new VDS (5) tool: the Errorlog Creator.
Description wrote: | Tired of getting those vague emails with 'Hello, I've found an error in your program! It sais that an error number 201 occured at line 2105 occured', and that you'll have to figure out yourself what went wrong?
This this program is the solution! Errorlog Creator scans your script, and generates a seperate script which will create an errorlog with all information available of the enduser's computer, the values of all variables you used, and the content of all lists you used. The errorlog will be created at runtime just by calling the 'errorlog' command.
|
For more information click here, and click here to download it.
Thanks to Chris, jwfv and Serge for beta-testing
Regards,
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sun May 02, 2004 1:24 pm Post subject: |
|
|
Here's an example of such an errorlog:
Code: |
> Error information
**************************************
Error number: 22
Error line: 54
Date/time: 04-07-2004 14:39:33
> System information
**************************************
Free memory: 44564 kB
Screen resolution: 1024 x 1280
Windows version number and build: 5.1|2600
Is 32 bit version of Windows: 1
Elapsed time since last system start: 5:16:01:17
Extra Windows information: Service Pack 1
Is a member of the Windows NT family: 1
Language-id: $13
> Content of variables
**************************************
%%MyVar: Hello!
%%Variable2: Blahblah
%%Variable3: Hey!
%%Variable4: How are you??
%%Name: I think we have enough variables...
%%MyLastVar: goodbye!
%%List: 4
> Content of list 1
**************************************
1
3138
86104
37224
42567
> Content of list 2
**************************************
8202
47479
7057
77465
32792
> Content of list 3
**************************************
69767
84416
71797
30664
16263
32949
27903
> Content of list 4
**************************************
48176
14919
82727
2030
|
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
Protected Valued Contributor
Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Tue May 04, 2004 8:22 am Post subject: |
|
|
Sounds cool. I wish I had VDS 5... |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Fri May 07, 2004 2:38 pm Post subject: |
|
|
Well... it is possible to use it with vds 4. Just open 'errorlog.dsc', and copy the code into your script. Then goto the 'errorlog' label and the log will be created.
Perhaps it would be a good idea to make Errorlog Creator compatible with vds 5 and lower
Regards,
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Jan 02, 2007 3:02 am Post subject: |
|
|
Hi Vic,
Very cool little application.
But (there's always a but after a compliment ) as I'm unable to send attachments using window's mailto I've been trying to add the contents of errorlog.log to the body of the message. Hmm, my question is more mailto: related than 'Error Log Creator' related...
So far I'm reading the log file into a list, and then copying each line into another list with "%AO" prepended to the line. %AO is a line break in emails (for anyone who doens't know). The problem is the list stops at almost the same place every time (sometimes one line before or after).
Code: | errorlog
rem wait 2
list create,20
list create,21
list loadfile,20,@path(%0)errorlog.log
%f =
rem list add,21,@chr(34)"%0A"
list add,21,"%0A"
repeat
list add,21,"%0A"
%f = %f@next(21)
list add,21,@next(20)
until @not(@ok())
rem list add,21,@chr(34)
list close,20
list close,21
rem shell open,"mailto:support@toppytools.com?subject=Runtime Error in "%%ProgName"&body="%%ProgName" v"%%Build" had a Runtime Error "@error(E)" at line "@error(N)" ["%V"]"
shell open,"mailto:support@toppytools.com?subject=Runtime Error in "%%ProgName"&body=Hi Dave, %0A%0A%0A%0A%0A****** ToppyTools Suite version "%%SuiteVersion" ******%0A"%%ProgName" v"%%Build" had a Runtime Error "@error(E)" at line "@error(N)" ["%V"]%0A"@chr(34)%f@chr(34) |
Also, some variable names do not display correctly in the email:
%%Balloon: displays as %ºlloon:
%%DDEcommand displays as %İEcommand:
"%%Delay": displays as %Şlay:
Obviously %BA, %DD and %DE are ASCII hex codes used in emails. I can rename my variabls to get around this.
Hmm, as I typed this I believe I've found the answer to my problem. Apparently, the entire mailto: string is limited to 256 characters... _________________ cheers
Dave |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Mon Jul 03, 2017 4:08 pm Post subject: |
|
|
Hey Vic,
I don't suppose you could share the source for this? It use it a lot and works great. I do end up editing the script created with my own additions, but I have to do that each time. I was going to make my own, but I thought I would see if you were around and would share the source.
Thanks in advance!
Chris _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Tue Jul 04, 2017 12:02 am Post subject: |
|
|
I got impatient and ended up making my own _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jul 04, 2017 5:01 pm Post subject: |
|
|
Is it's things like this that always made VDS so freaking GREAT! _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
|