You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
There are a couple of places where we call contributeToHistogram and contributeToHistogramOnEvent in our bidding logic. These calls are guarded by some experiments and we want to have debug mode enabled in all of the calls. In case more than one experiment is enabled we end up calling enableDebugMode more than once which crashes the script.
Is there any way to know if debug mode is enabled in the privateAggregation object?
Is this a best practice to follow? If not how can we best implement this case?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
While there isn't a built in way to check debug mode, callers should be able to define a variable within their code to detect when it is available.
For example:
// At the start of generateBid()letisDebugModeEnabled=false;// Later, maybe multiple times:if(!isDebugModeEnabled){privateAggregation.enableDebugMode();isDebugModeEnabled=true;}
Hi,
There are a couple of places where we call
contributeToHistogram
andcontributeToHistogramOnEvent
in our bidding logic. These calls are guarded by some experiments and we want to have debug mode enabled in all of the calls. In case more than one experiment is enabled we end up callingenableDebugMode
more than once which crashes the script.privateAggregation
object?Thanks in advance!
The text was updated successfully, but these errors were encountered: