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
Ranu JainRanu Jain 

This.Debug syntax

Hi ,


I came to a code where I see below syntax  in class :

this.Debug =  ' XXX';


Here no Debug varibale is defined.


When I tried to write this syntax to my code it gives me error : Error: Compile Error: Variable does not exist: Debug at line 

I am not getting what this syntax mean to in that code?

Jia HuJia Hu
Debug is not a reserved keyword, you can use it whatever you like, for example,

public class Test1 {
String Debug;
public Test1() {
this.Debug = 'xxx';
System.debug(' ---- ' + Debug);