Walkback using 'Break on ' or 'Watch on' inst var in a trait class
I get a walkback when trying to use the Break on access menu option or Watch on access menu option for instance variables in a trait. It does appear the breakpoint is possibly set, but shouldn't walkback first.
Steps to reproduce the behavior:
- Select a trait class
- Select Vars radio button
- Select an inst var and right-click to open the context menu
- Select any of the
Break onorWatch onmenu options. - Get walkback - stack attached
Version information: Pharo 13.1.0 Build information: Pharo-13.1.0+SNAPSHOT.build.705.sha.3ff27d6817cce1921739fdd49bd8a14301cefe74 (64 Bit) Build date: 13 October 2025
The problem seems to be in method lookupVar: which can't find the Trait class's inst var.
Although there are a lot of open breakpoint issues, I couldn't find one which addressed this particular issue.
Expected development cost
My guess is that MetaclassForTraits might need a new method lookupVar: to override the super method and find the inst var properly. For someone experienced, probably wouldn't take to long.