Developer Console అంటే ఏమిటి? మీ మొదటి Apex Program ఎలా Run చేయాలి?

 

Developer Console అంటే ఏమిటి? మీ మొదటి Apex Program ఎలా Run చేయాలి? 


 

మన గత Blog లో Apex అంటే ఏమిటి? అనే Topic గురించి తెలుసుకున్నాం.

ఈ రోజు మనం ప్రతి Salesforce Developer కి తప్పనిసరిగా తెలిసి ఉండాల్సిన ఒక ముఖ్యమైన Tool గురించి నేర్చుకోబోతున్నాం.

అదే...

Developer Console అంటే ఏమిటి?


ముందుగా ఒక చిన్న ఉదాహరణ చూద్దాం

మీరు ఒక Notebook తీసుకుని అందులో ఏదైనా రాయాలంటే ఏమి కావాలి?

ఒక Pen కావాలి.

అలాగే Computer లో Programming చేయాలంటే ఏమి కావాలి?

ఒక Software కావాలి.

Salesforce లో Apex Code రాయడానికి Salesforce మనకు ఇచ్చిన Tool నే Developer Console అంటారు.


Developer Console అంటే ఏమిటి?

Developer Console అనేది Salesforce లో ఉండే ఒక Development Tool.

దీనిలో మనం...

  • Apex Code రాయవచ్చు.

  • Code Run చేయవచ్చు.

  • Errors చూడవచ్చు.

  • Debug చేయవచ్చు.

  • SOQL Queries Execute చేయవచ్చు.

  • Logs చూడవచ్చు.

ఒక మాటలో చెప్పాలంటే...

Salesforce Developers ఎక్కువగా ఉపయోగించే Tool Developer Console.


Developer Console ఎందుకు ఉపయోగిస్తారు?

ఒక Student Mathematics నేర్చుకుంటే Practice Book ఉపయోగిస్తాడు.

ఒక Painter Drawing Book ఉపయోగిస్తాడు.

అలాగే Salesforce Developer Code Practice చేయడానికి Developer Console ఉపయోగిస్తాడు.


Developer Console ఎలా Open చేయాలి?

Step 1

మీ Salesforce Developer Org లో Login అవ్వండి.

Step 2

పై కుడివైపు ఉన్న ⚙️ (Gear Icon) పై Click చేయండి.

Step 3

Developer Console అనే Option పై Click చేయండి.

కొన్ని Seconds లో కొత్త Window Open అవుతుంది.

అదే Developer Console.


Developer Console లో ఏమేమి ఉంటాయి?

మొదటిసారి Open చేస్తే చాలా Options కనిపిస్తాయి.

మనకు ప్రస్తుతం ముఖ్యమైనవి ఇవే.

  • File

  • Debug

  • Test

  • Query Editor

  • Logs

ఇవన్నీ మనం తరువాతి Blogs లో ఒక్కొక్కటిగా నేర్చుకుంటాం.


ఇప్పుడు మన First Apex Program Run చేద్దాం

పై Menu లో...

Debug → Open Execute Anonymous Window

అనే Option పై Click చేయండి.

ఒక చిన్న Window Open అవుతుంది.

అందులో ఈ Code రాయండి.

System.debug('Hello SFDC Telugu');

ఇప్పుడు...

Execute Button పై Click చేయండి.

Congratulations! 🎉

మీ మొదటి Apex Program Run అయింది.


ఈ Code లో ఏమి జరిగింది?

ముందుగా Code ని చూద్దాం.

System.debug('Hello SFDC Telugu');

ఇప్పుడు ఒక్కో భాగాన్ని అర్థం చేసుకుందాం.

System

Salesforce ఇచ్చిన ఒక Built-in Class.

debug()

మనకు కావాల్సిన Message ని Log లో చూపిస్తుంది.

'Hello SFDC Telugu'

ఇది మనం Print చేయాలనుకున్న Text.


Output ఎక్కడ కనిపిస్తుంది?

చాలా మంది Beginners చేసే మొదటి Mistake ఇదే.

Execute చేసిన తర్వాత Screen పై Output కనిపించదు.

అది Debug Logs లో కనిపిస్తుంది.

అందుకే Debug Log ఎలా చూడాలో కూడా తెలుసుకోవాలి.


Debug Log ఎలా చూడాలి?

Developer Console లో...

Logs Tab పై Click చేయండి.

ఇప్పుడు Latest Log పై Double Click చేయండి.

Search Box లో...

Hello SFDC Telugu

అని Search చేయండి.

మీ Message కనిపిస్తుంది.


System.debug() ఎందుకు ఉపయోగిస్తారు?

మన Code సరిగ్గా పని చేస్తుందా లేదా తెలుసుకోవడానికి.

Variables లో ఉన్న Values చూడడానికి.

Errors ఎక్కడ వస్తున్నాయో తెలుసుకోవడానికి.

Testing సమయంలో Debug చాలా ఉపయోగపడుతుంది.

అందుకే Salesforce Developers ఎక్కువగా ఉపయోగించే Statement...

System.debug();

గుర్తుంచుకోవాల్సిన విషయాలు

 Developer Console అనేది Salesforce Development Tool.

Apex Code రాయడానికి ఉపయోగిస్తారు.

Execute Anonymous ద్వారా Code Run చేయవచ్చు.

Output Debug Logs లో కనిపిస్తుంది.

System.debug() ఎక్కువగా Testing కోసం ఉపయోగిస్తారు.


Interview Questions

1. Developer Console అంటే ఏమిటి?

Answer:

Salesforce లో Apex Development, Debugging మరియు Testing కోసం ఉపయోగించే Tool ను Developer Console అంటారు.


2. Execute Anonymous అంటే ఏమిటి?

Answer:

Class Create చేయకుండా చిన్న Apex Code ని వెంటనే Run చేయడానికి ఉపయోగించే Feature.


3. System.debug() ఎందుకు ఉపయోగిస్తారు?

Answer:

Code Execution సమయంలో Values మరియు Messages ను Debug Logs లో చూడడానికి ఉపయోగిస్తారు.


4. Output ఎక్కడ కనిపిస్తుంది?

Answer:

Developer Console లోని Debug Logs లో కనిపిస్తుంది.


Practice Task

ఈ రోజు మీరు చేయాల్సిన పని.

 Developer Console Open చేయండి.

 Execute Anonymous Window Open చేయండి.

 ఈ Code Run చేయండి.

System.debug('My First Apex Program');

తర్వాత Debug Log లో Output చూడండి.


Conclusion

ఈ రోజు మనం Developer Console అంటే ఏమిటి? దాన్ని ఎలా Open చేయాలి? మరియు మన మొదటి Apex Program ఎలా Run చేయాలో నేర్చుకున్నాం.

ఇది Apex Learning లో మొదటి Practical Step.

రోజూ కొద్దికొద్దిగా Practice చేస్తే Coding చాలా Easy అనిపిస్తుంది.


🎯 ఇంకా మరింత లోతుగా Apex నేర్చుకోవాలనుకుంటున్నారా?

ఈ Blog ద్వారా మీరు Apex Concepts ను సులభంగా అర్థం చేసుకోవచ్చు. కానీ చదవడం మాత్రమే కాకుండా, Practice చేస్తూ నేర్చుకుంటేనే నిజమైన Coding Skills వస్తాయి.

అందుకే నేను SFDC Telugu లో పూర్తి Salesforce Apex Course (తెలుగులో) రూపొందించాను.

ఈ Course లో ప్రతి Concept ను Step by Step గా, Real Time Examples తో, Coding రాని వారికీ కూడా అర్థమయ్యే విధంగా వివరించాను.

ఈ Course ద్వారా మీరు...

Apex Code ఎలా రాయాలో నేర్చుకుంటారు.
 Code ని చదివి సులభంగా అర్థం చేసుకునే సామర్థ్యం పెరుగుతుంది.
 Real Time Scenarios పై Practice చేస్తారు.
 Interview లో వచ్చే Coding Questions కి ధైర్యంగా Answer చెప్పగలుగుతారు.
మీ స్వంతంగా Apex Programs రాయగల స్థాయికి చేరుకుంటారు.

Video Link క్రింద ఇవ్వబడింది.


ఒక్కసారి Video చూసి Course Structure మీకు నచ్చితే Website లో నుండే Purchase చేయవచ్చు.

వెంటనే Course కి Instant Access వస్తుంది. వెంటనే Learning ప్రారంభించవచ్చు.

Happy Coding! 🚀

For PDF: 
SFDC TELUGU

Post a Comment

0 Comments