![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Start SageTV with java debugger enabled ?
Is there a way to pass in java options (e.g. -Xdebug etc.) to the virtual machine running the SageTV client ? I would like to debug custom java code that I call from the STV by attaching a debugger to the SageTV JVM...
Is this possible ? Thanks, Dirk |
#2
|
|||
|
|||
Anyone ?
Maybe some advice from the 'creators' ? ![]() Thanks, Dirk |
#3
|
||||
|
||||
I don't know the answer, but what I do for debugging is to enable the console window in the registry and sprinkle my Java code with a lot of calls to DebugLog. That's usually enough to follow the flow of execution and see where things are going wrong.
The registry setting I'm talking about (if you don't know already) is at HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\Common. Create a DWORD called "consolewin" and set it to 1 to display the debugging console when Sage starts up.
__________________
-- Greg |
#4
|
||||
|
||||
System.out is also sent to the console/logfile... easier than calling a Sage API func...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki ![]() |
#5
|
||||
|
||||
There's no way to enable the debugger in the JVM itself for SageTV (and we won't be changing this for various reasons). You can use the methods that others have brought up here.
__________________
Jeffrey Kardatzke Founder of SageTV |
#6
|
|||
|
|||
I already use the debug logging extensively, and was aware about the console window thanks to a prior hint from Niel. It's just that debug logging is often missing at exactly the place in the code you would need it
![]() But thanks Jeffrey for the clarification, and I fully understand the reasoning. I have no problem with using the 'printf' technique, I just thought I ask in case it would be indeed possible somehow. Thanks to everyone, Dirk |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|