Icedtea-web: Enable debug+logging from applet <object> params?
Jiri Vanek
jvanek at redhat.com
Fri May 9 12:24:20 UTC 2014
On 05/07/2014 02:36 PM, helpcrypto helpcrypto wrote:
> Hi Jiri, thanks for your reply.
>
>
> As most of your explanation seems to question the purpose of this, I'll try to be clear on that.
>
> Using Oracle JRE ControlPanel you can view/hide the console and enable 3 levels of debug. As you
> said, ITW does something similar.
In ITW words:
We can have debug on/of
console can be set to show/hide (you can show it in case of error) / disable
- if it is shown or hidden, console always have also debug messages (from view of console, debug
is always on)
- native messages from plugin must be enabled in itw-settings or by system variable to be
available in console - but those are mostly not interesting for *any* plugin developer (they really
are not :)
- itw have also file logging, and system logging. But it is not 100% useful for this purpose.
- file logging is split into native/java parts (in oposite of stdout, where is split by stdout/err)
- system logging is always getting *only* fatal errors
Well this should be already working in itw. As itwsettings result is just properties file, which is
just merged into existing properties, you should be able to set the (eg)
"-Ddeployment.console.startup.mode=SHOW" to JNLP/apllet pretty smoothly. But to be truth, I need to
revisit this. It was not tested for some time. (And I'm not sure which have preference - wheter item
in deployment.properties, or one from "command line")
If pure "-Ddeployment.console.startup.mode=SHOW" can you try to add also "-Xmx=1g" ? This is
forcing the fork of VM 100%.
> Many times, users don't have such settings, and they have default (no debug enabled/hidden console)
> so logs are smaller or there isn't a log file.
This is just philosophical:
Is better to have "-Denable.someDebu=someLevel" in jnlp/applet file, and ask user to lunch this
jnlp/applet (instead of the one with normal debug) or to tell him change click itw-settings and
show the console? (As you probably have to do anyway for proprietary plugin)
>
> I was trying to enable -using applet params- tracing/debuglevel for my applet, so being able to ask
> the user for the log-file (and having a full one, not a short one). In other words: let developers
> being able to enable per-applet debuglevel.
>
> Did I explanied myself properly this time?
>
>
A bit better:) Thank you!
If the proeprty I told upper will work for you, then please note - console have copy-all button -
however, this button by default do not copy output of application. (it copy just output of ITW))
If your usecase is to get *yours* app messages, then it probably deserves to change this approach.
(or explain to user)
Looking forward for ideas!
This looks quite interesting ;)
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itwDebugSettings.png
Type: image/png
Size: 32936 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140509/ea17983c/itwDebugSettings-0001.png>
More information about the distro-pkg-dev
mailing list