function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dianna Raquel Perez GüerequeDianna Raquel Perez Güereque 

DEBUGS ON CODE ARE NOT WORKING.

I'm working on my sandbox and I have some debugs on my code, but when i reload the visualforce to see those debugs, the log comes empty.
I'm sure my debugs are running because i have 1 of those debugs on my "initialize" method and the visualforce is working fine, almost as i defined in my controller (where the debugs are), but still came empty when i click on the "debugs only" mark in my log. 

If i run another visualforce and write a debug on its controller, i get that debug as usual..... 

I just can't see the debugs in this VisualForce_Extension 
ShivaKrishna(Freelancer)ShivaKrishna(Freelancer)
Hi there, 

As you are able to see debugs for other pages, it may not be the issue with the debug console. I suspect your code is not getting call. Can you paste your code so it gives more idea

let me know, if it helps you or need any help :)
shiva.sfdc.backup@gmail.com
Dianna Raquel Perez GüerequeDianna Raquel Perez Güereque
hello... 

I have my code running, i know this because i have the "main" method where i call all the other methods to give values to my VF. 
My method "initialize" is this:
 
public void inicializar()
    {
        this.totalUSD = 0;
        this.totalMXN = 0;
        this.totalCotizacion = 0;
        this.sistemaParametro = System.currentPageReference().getParameters().get('sistema');
        system.debug(sistemaparametro);
		this.DesglosarSistemas = this.getSistemas();
        this.listadoProductos = this.getListadoProductos(); 
        this.sistemas = new List<ClasificacionxSistemaWrapper>();
        this.nivelesw = new List<ClasificacionxNivelWrapper>();        
        this.tiposProducto = new List<ClasificacionxProductoWrapper>();
        
        
        this.obtener_Sistemas(); 
        this.getSistemasyTipos(); 
        system.debug('hola inicializar');
    }

my Visualforce is full of information and almost working perfect.
I have a debug on every method (this.obtener_Sistemas and this.getSistemasyTipos) but can't see any (even those on my main method).
Dianna Raquel Perez GüerequeDianna Raquel Perez Güereque
In addition to that, of course i have my method. 
 
public ExplosionDeInsumos_Extension(ApexPages.StandardController controller)
        
    {    
        this.cotizacion = (Solicitud_de_Cotizacion_2__c)controller.getRecord();
        this.cotizacion = [SELECT Desglosar_por_Sistema__c FROM Solicitud_de_Cotizacion_2__c WHERE Id =: this.cotizacion.Id limit 1];
        system.debug('before initialize');
        inicializar();
        system.debug('after initialize');
    }

i get this 2 new debugs "before initialize" and "after initialize" but not the debugs on that method neither the others... 
Lokeswara ReddyLokeswara Reddy
Salesforce truncates the debug logs if the size of the log exceeds limit, you can set the debug log level to "DEBUG" , then execute your code and check the logs again.

For more info on debug log levels, plz refer the link
https://help.salesforce.com/apex/HTViewHelpDoc?id=code_setting_debug_log_levels.htm&language=en