[Gambas-user] Programmatic / Scriptable way to set breakpoints

Charlie Ogier charlie at cogier.com
Sun Aug 25 13:16:09 CEST 2019


Hi Kking, try: -

Dim s As String = "Catch\n"

s = Replace(s, "Catch\n", "Catch\nSTOP\n")

Print s

Charlie

On 25/08/2019 08:31, KKing wrote:
> <<
> Yes it's the keyword STOP
> >>
> ta,
> slight tangent is there ability to do search and replace with newline 
> characters?
> i.e search for
>     CATCH\n
> and replace with
>     CATCH\n
>         STOP\n
>
> or similar
>
> <<
> For scenario number two, change the declaration of the variable to 
> property
> and set the breakpoint in write event.
> >>
> ta, good to know at the start, might be bit much effort and 
> refactoring now on one project that is rather large code converted 
> from powerbasic.
>
> K.
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----



More information about the User mailing list