Advertisement
2002ASP Debugging and Error Handling #4789

bDebugmode

detect if you are running in debugmode (vbstudio) or in compiledmode (.exe) at runtime !

AI

AI சுருக்கம்: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

மூலக் குறியீடு
original-source
Private Function bDebugMode() As Boolean
  On Error GoTo ErrorHandler
'in compiledmode the next line is not 
'available, so no error occurs !
  Debug.Print 1 / 0
  
  Exit Function
  
ErrorHandler:
  bDebugMode = True
  
End Function
அசல் கருத்துகள் (3)
வேபேக் மெஷினிலிருந்து (Wayback Machine) மீட்டெடுக்கப்பட்டது