[Gambas-user] Gambas3 Debugger: Data Breakpoint

Bruce adamnt42 at gmail.com
Sun May 23 12:03:14 CEST 2021


On 23/5/21 4:58 pm, KKing wrote:
> Hi John,
> I feel some of your pain, having been through some of that with a few 
> migrations of VB6 and even older DOS based Basic dialects to Gambas.
> We would like to do more but it is very time consuming to migrate 
> especially on the larger codebase programs, and hence have a lot of VB6 
> programs still running under wine.
> I particularly miss the ability to set a breakpoint in the "on error" 
> section(s) and then being able to drag the active line to a "resume" 
> statement having altered some offending variables on the fly to carry on 
> debugging in very large projects where to start over is such a pain when 
> a lot of inputs are required just to get back to the same point.
> Some habits die hard!
> We loaded notepad++ via wine and use it alongside the Gambas IDE where 
> the being able to fold code helped a lot and some of the search and 
> replace functionality proved more efficient for us.
> Also within Gambas Ctrl+H helped to a degree, and multiple large monitors.
> Good Luck
> K.
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

Just as a possible workarouns "clue" for that big method problem, I 
tried thos. It's a bit hacky but nevertheless.

1. In the class editor, with any line in the required method, collapse 
the entire class (Ctl+Alt+Return). This should collapse or "fold" the 
entire class. If that works press [home]]Shist+Down][Ctl+C]

2. In the "Data" ""directory"" create a new file called "temp.class"

3. Open that file and paste via (Ctl+V)
Theoretically, (and AFAICS it works) you now hane a file with that 
methods code that has syntax highlighting and later you can select all 
of it and paste it back into the original class code.

Obvious;y you must be aware that you are NOT editting the actual class 
source code at this point but at least yo do (should) have syntax 
highlighting and (should) have code complation.

Finally copy the altered code back to the actual class. ( I dare not try 
this in my experiments yet as I am trying it on a 12,000 line stable 
project.) But the trick seems to be collapsing the code in the class editor.

hth
bruce



More information about the User mailing list