Debug Object

In both Visual Basic and VBA, the Debug Object is a relatively inaccessible object that is responsible for sending output to the Immediate window.

Debug Object Methods

Method Description
Assert Conditionally suspends execution and transfers control to the Immediate window; available in Visual Basic, but not in VBA.
Print Displays output in the Immediate window.

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.