pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Walkback using 'Break on ' or 'Watch on' inst var in a trait class

Open ericwinger opened this issue 3 months ago • 0 comments

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:

  1. Select a trait class
  2. Select Vars radio button
  3. Select an inst var and right-click to open the context menu
  4. Select any of the Break on or Watch on menu options.
  5. 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.

20251104_pharo_walkback_break_on_inst_var.txt

ericwinger avatar Nov 04 '25 18:11 ericwinger