ken_nogi/XVBA/MSS/■MSSツール/xvba_modules/Xdebug
Kenichiro NOGI 4ff6e12165 XVBA
2025-07-10 10:15:51 +09:00
..
images XVBA 2025-07-10 10:15:51 +09:00
CHANGELOG.md XVBA 2025-07-10 10:15:51 +09:00
README.md XVBA 2025-07-10 10:15:51 +09:00
Xdebug.cls XVBA 2025-07-10 10:15:51 +09:00
xvba.package.json XVBA 2025-07-10 10:15:51 +09:00

Xdebug (VBA Immediate Window in Output VSCode Window)

Description

  • This package provides a way to simulate VBA Immediate Window in Output VSCode window
  • Find the Output window (VBA Immediate Window)

Methods

VBA immediate Window

Xdebug.printx

  • This method print any type os variable

Public Sub index()


  Dim test(1) As Variant

  'Add an Object
  Set test(0) = Sheets(1)
  'Add a String
  test(1) = "Test Xdebug Output"
  
  Xdebug.printx test

End Sub

Xdebug.printError

  • This method is use for print error
 Public Sub index()
  
  On Error GoTo ErrorHandle:
    'throw an error
    d = 1/0
    'Your code here
  
  
 ErrorHandle:
    Xdebug.errorSource = "pageConsoller.index"
    Xdebug.printError

 End Sub