How can I debug the query string below to see what values are actually passed to the server? If I do system.debug ('Query is: '+contactsFromQ_List2 ); I do not see it in a clean string that I can easily read.
contactsFromQ_List2 = [Select contact__r.Training_Period__c,Name, Shal_Type_Community__c, Contact__c, Contact_Name__c, a.Supervisor_Name__c,
a.RecordTypeId, a.Months_in_Shut__c, a.Id,
a.Coordinator_Name__c, a.Active__c
From Additional_Contact_Role__c a
Where a.RecordTypeId = :shalRTId
AND Contact__c != Null
AND CALENDAR_YEAR(a.From_Date__c) = :yearChosen
AND Contact__c IN :currentContactIds_Set
AND contact__r.Training_Period__c = :chosenTrainingPeriod
Order by Shal_Type_Community__c];