SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2007, 01:09 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Loading Console Window

In the middle of writing a loadable class and hitting a bit of a bug (in my code) and really need the console window so I can println() some variables to see what's going on. I added the 'consolewin' dword value to the registry and set it to one, stopped and restarted the SageTV service, but I don't see a console window.

I'm still using the trial version of Sage6, is this what's preventing me from seeing the console window by any chance? Thought I'd ask before replacing all my System.out.println() calls with file I/O calls to see my vars.
Reply With Quote
  #2  
Old 03-26-2007, 01:55 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
The Service cannot create a console window.... If your class really needs to be in the server, run Sage in non-service mode.

Otherwise put it in the client...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #3  
Old 03-26-2007, 12:48 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I agree with Niel. Don't run untested code in your service. Debug it in a client first (or if you have no client licenses, in a pseudo-client running on your server).

Alternatively, enable SageTV's native debug logging in your service and consult the log files it produces. No need to create a separate log file for your code (unless you want to).

Or if you want to monitor your running service in real time, send your println() output to a Writer that wraps the OutputStream of a Telnet socket.
__________________
-- Greg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
Sage Bug justindd SageTV Linux 5 01-30-2007 10:12 AM
How to disable the popup window in the program guide? How to keep the program guide? metropole SageTV Software 8 05-18-2006 06:25 PM
Extra SageTV Window with Server Turned On rsagetv99 SageTV Beta Test Software 4 04-05-2006 12:50 PM
Recorded shows automatically deleted? cfcrafting SageTV Software 16 02-02-2006 01:12 PM


All times are GMT -6. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.