Debug Console - API Description

Table of Contents

Declarations for LibreOffice

Private Declare Function ConsolePrint Lib "ssdbgcons64.dll" (ByVal text As String) As Long Private Declare Function ConsoleColor Lib "ssdbgcons64.dll" (ByVal r As Byte, ByVal g As Byte, ByVal b As Byte) As Long Private Declare Function ConsoleClear Lib "ssdbgcons64.dll" () As Long Private Declare Function ConsoleFont Lib "ssdbgcons64.dll" (ByVal font As String) As Long Private Declare Function ConsoleFontSize Lib "ssdbgcons64.dll" (ByVal size As Long) As Long Private Declare Function ConsoleShow Lib "ssdbgcons64.dll" (ByVal show As Long) As Long Private Declare Function ConsoleCreateLog Lib "ssdbgcons64.dll" (ByVal name As String) As Long Private Declare Function ConsoleStartLog Lib "ssdbgcons64.dll" (ByVal start As Long) As Long Private Declare Function ConsoleShowBalloons Lib "ssdbgcons64.dll" (ByVal show As Long) As Long

Declarations for Microsoft Office

' Declarations for 64-bit Microsoft Office 2007-2016 and standalone version of MS 365 Private Declare PtrSafe Function ConsolePrint Lib "ssdbgcons64.dll" (ByVal text As String) As Long Private Declare PtrSafe Function ConsoleColor Lib "ssdbgcons64.dll" (ByVal r As Byte, ByVal g As Byte, ByVal b As Byte) As Long Private Declare PtrSafe Function ConsoleClear Lib "ssdbgcons64.dll" () As Long Private Declare PtrSafe Function ConsoleFont Lib "ssdbgcons64.dll" (ByVal font As String) As Long Private Declare PtrSafe Function ConsoleFontSize Lib "ssdbgcons64.dll" (ByVal size As Long) As Long Private Declare PtrSafe Function ConsoleShow Lib "ssdbgcons64.dll" (ByVal show As Long) As Long Private Declare PtrSafe Function ConsoleCreateLog Lib "ssdbgcons64.dll" (ByVal name As String) As Long Private Declare PtrSafe Function ConsoleStartLog Lib "ssdbgcons64.dll" (ByVal start As Long) As Long Private Declare PtrSafe Function ConsoleShowBalloons Lib "ssdbgcons64.dll" (ByVal show As Long) As Long

Function Descriptions

ConsolePrint

Outputs a text string to the console window.

ConsolePrint "Text" & vbCrLf ConsolePrint "Text2" & vbCrLf ConsolePrint "Text3" ConsoleClear

ConsoleColor

Sets the text color.

ConsoleColor 255, 0, 0 ConsolePrint "Text " ConsoleColor 0, 255, 0 ConsolePrint "Text2 " ConsoleColor 0, 0, 255 ConsolePrint "Text3" ConsoleColor 0, 0, 0

ConsoleClear

Clears the console window.

ConsolePrint "Text" & vbCrLf ConsolePrint "Text2" ConsoleClear

ConsoleFont

Sets the font for a newly printed text.

ConsoleFont "System" ConsolePrint "Text " ConsoleFont "Arial" ConsolePrint "Text2"

ConsoleFontSize

Sets the font size for a newly printed text.

ConsoleFontSize 20 ConsolePrint "Text " ConsoleFontSize 16 ConsolePrint "Text2"

ConsoleShow

Shows and hides the console window.

ConsoleShow 1

ConsoleCreateLog

Creates a log file and starts logging.

ConsoleCreateLog "logfile.txt" ConsolePrint "Text"

ConsoleStartLog

Starts or stops logging to a file.

ConsoleCreateLog "logfile.txt" ConsolePrint "Text" ConsoleStartLog 0 ConsolePrint "Text2" ConsoleStartLog 1 ConsolePrint "Text3"

ConsoleShowBalloons

Enables showing balloons in the system tray. Balloons appear only when the console window is hidden.

ConsoleShow -2 ConsoleShowBalloons 1 ConsolePrint "Text" The user is seeing tray balloons instead of the console window.
Facebook X Bluesky Youtube Contacts

© 2026 StrokeScribe. All rights reserved. Use of any portion of this site constitutes acceptance of our Terms of Use and Privacy Policy. The website material may not be reproduced, except with the prior written permission.