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
SUJAY GANGULYSUJAY GANGULY 

how to show console.log in Developer console for lightning controller and helper js?

Mustafa JhabuawalaMustafa Jhabuawala
You can use console.log the similar way you do in javascript.

This is how you can write console.log in you lightning controller or helper.
({
	myAction : function(component, event, helper) {
		console.log('Here');
	}
})
Sukanya BanekarSukanya Banekar
You can not see console.log in devloper console but you can see that on browser as mustafa mentioned you need to use the syntax in your code. Run the app or component, press f12 and you can see console logs.

Hope this helps you.

Thanks,
Sukanya Banekar
SUJAY GANGULYSUJAY GANGULY
Can you send a example? Thanks, Sujay Ganguly skype: sujay.801389@gmail.com
Mustafa JhabuawalaMustafa Jhabuawala
Sujay, I mentioned about browsers console not the Salesforce developer console. 


You can't view the console logs in salesforce developer console.