Forum Discussion
Debug.Print and Debug.WriteLine
Hi,
There is no method in VBA called (Debug.WriteLine).
In VBA, The Debug object has only two methods, .Print and .Assert.
Please read this https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/debug-object?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev11.query%3FappId%3DDev11IDEF1%26l%3Den-US%26k%3Dk(vblr6.chm1008891)%3Bk(TargetFrameworkMoniker-Office.Version%3Dv16)%26rd%3Dtrue%26f%3D255%26MSPPError%3D-2147217396.
The https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.debug.writeline?view=netframework-4.7.2 is part of .NET Framework and it can be used in .NET languages such as VB.NET and C#.
You can say that the Debug.WriteLine is the .NET Framework equivalent method to the Debug.Print in VBA.
Hope that make sense
Thanks Haytham Amairah for your answer