VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



bDebugmode

by skizmo (1 Submission)
Category: Debugging and Error Handling
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

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

Code Returns
true or false
Side Effects
none (offcourse :) )

Rate bDebugmode

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

Download this snippet    Add to My Saved Code

bDebugmode Comments

No comments have been posted about bDebugmode. Why not be the first to post a comment about bDebugmode.

Post your comment

Subject:
Message:
0/1000 characters