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 01-27-2013, 02:30 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Temporarily disable a hook - best way?

Hello all,

What's the approach you guys usually take when temporarily disabling hook for debugging purposes? I want to step through my code, and having some hooks enabled (along with forked threads) makes this an annoying process.
Reply With Quote
  #2  
Old 01-28-2013, 12:54 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I don't think you can disable a hook. You can put in some dummy code that just returns and does nothing.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 01-28-2013, 03:24 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I just add an If false

Then place my code under that so it won't be called.

k
Reply With Quote
  #4  
Old 01-28-2013, 04:01 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by jusjoken View Post
I just add an If false

Then place my code under that so it won't be called.

k
+1 - thats essentially how i comment out any code that i dont want to run
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #5  
Old 01-28-2013, 06:16 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Thanks guys appreciate it.
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
temporarily disable tuners for testing? sflamm SageTV Software 1 12-31-2012 12:51 PM
Temporarily disable a favorite element33 SageTV Software 12 04-07-2011 04:04 AM
How do you temporarily disable Jetty apps? wayner SageTV Customizations 1 04-12-2010 06:39 PM
Temporarily Disable Source jonnydeath SageTV Software 4 01-01-2010 07:56 PM
Temporarily disable tuner Jackal24 SageTV Software 3 01-10-2007 10:59 AM


All times are GMT -6. The time now is 12:56 PM.


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