I am using Dev Console Go to Debug->Open execute Anonymous window->Paste my line of code that I want to Debug but the window shows error :Line: 1, Column: 1
Enclosing type for global properties in apex classes must be declared as global
My apex:
global with sharing class DynamicController{
global list<Dynamic__c> theresult{get;set;}
global list<Dynamic__c> dynamicresult{get;set;}
global String i{get;set;}
global Apexpages.StandardSetController Accountserctrl{get;set;}
global DynamicController(){
String query = 'select name,Dynamic_content__c,Dynamic_image__c,Dynamic_release_time__c from Dynamic__c order by Dynamic_release_time__c';
Dynamic__c a = [select id,Dynamic_image__c from Dynamic__c limit 1];
String url = a.Dynamic_image__c.substringBetween('<img', 'img>');
i = url.substringBetween('src="','"');
System.debug(i);
theresult = Database.query(query);
Accountserctrl = new Apexpages.StandardSetController(theresult);
dynamicresult = Accountserctrl.getRecords();
}
}
