Forums

Exception report option

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Exception report option

Postby arisawa » Sun Sep 21, 2008 12:28 pm

(machine translation)

Hello :)

In my environment
OS:Windows Vista SP1 Japanese edition

"-er" option outputs exception report HTML does not seem to support a 2byte character.
Is it a problem of the source code encoding?
arisawa
 
Posts: 51

Re: Exception report option

Postby Charles » Sun Sep 21, 2008 12:31 pm

It might be a problem with the HTML source not specifying an encoding. Can you attach a small Cobra source file for me to try?

Thanks,
Chuck
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Exception report option

Postby arisawa » Sun Sep 21, 2008 1:08 pm

Is it good in this?
It is saved in "ANSI" and should carry out an exception if there is no argument.
Attachments
except.cobra
Exception Test
(179 Bytes) Downloaded 483 times
arisawa
 
Posts: 51

Re: Exception report option

Postby relez » Sun Sep 21, 2008 3:33 pm

If it can be useful on my system (italian settings ;) ) it's all right and the html report is generated.
relez
 
Posts: 69

Re: Exception report option

Postby arisawa » Mon Sep 22, 2008 12:29 am

(machine translation)
Hi Chuck, relez

I misunderstood it. :shock:

Not the problem of the source cord.
Japanese edition CSC compiler vomited was Japanese message and seems to have garbled it.

It is settled by adding
Code: Select all
<meta http-equiv="content-type" content="text/html; charset=utf-8">

in the HTML.
arisawa
 
Posts: 51

Re: Exception report option

Postby Charles » Mon Sep 22, 2008 2:30 am

Thanks again for testing. This is now fixed in development. See changeset:1627
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Exception report option

Postby arisawa » Thu Sep 25, 2008 12:44 am

A report was late.
The HTML acts well. :D

As for 8.57MB, there is size of the HTML on ".NET" for some reason. (Always)
arisawa
 
Posts: 51

Re: Exception report option

Postby Charles » Thu Sep 25, 2008 8:11 am

Glad to hear that it is working.

Yes, the HTML exception report is quite big at several megabytes. As it traverses through object references, it picks up a lot of related objects such as method definitions, types, etc. that cause the report to become large. Unfortunately, I haven't come up with a good criteria for limiting which objects are dumped.

An alternative is to use ObjectExplorer-WinForms.cobra (see doc string in file for instructions). This won't give a detailed stack trace, but it will let you interactively browse your objects.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 31 guests

cron