Home All Groups Group Topic Archive Search About

About breakpoints in code

Author
8 Jul 2005 6:54 AM
Parag Mahajan
Hi,

I would like to know, is there any add-in available that will let users see
the "breakpoints" set in the VB 6 project code, in the previous run, to be
visible, after opening the project again...

Thanks,
Parag.

Author
8 Jul 2005 2:28 PM
Ken Halter
"Parag Mahajan" <para***@gmail.com> wrote in message
news:u8PKnm4gFHA.1480@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I would like to know, is there any add-in available that will let users
> see
> the "breakpoints" set in the VB 6 project code, in the previous run, to be
> visible, after opening the project again...
>
> Thanks,
> Parag.

I've never seen one. You can set permanent breakpoints that are fairly easy
to manage, using Debug.Assert
'=======Module Code
Option Explicit

Public Const NO_BREAK As Boolean = True 'set = False if you want the break
points.
'=======Any place else....
Private Sub Command1_Click()
   Dim i As Integer
   For i = 1 To 10
      Debug.Print i
      'stops here if NO_BREAK = False. Has no effect on compiled app.
      Debug.Assert NO_BREAK
   Next
End Sub
'=======


--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..