When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is aliased?). Stephan
2016-01-15 13:26 GMT+01:00 Stephan Eggermont <stephan@stack.nl>:
When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is aliased?).
Yes, this happens with block vars from optimized blocks (ifNotNil:). The tempvars arent't local to the block, but method vars. And the debugger (debuggerMap) doesn't knows about this (this happens on both debuggers AFAIK).
Stephan
Hi Nicolai
On Jan 15, 2016, at 4:57 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:
2016-01-15 13:26 GMT+01:00 Stephan Eggermont <stephan@stack.nl>:
When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is aliased?).
Yes, this happens with block vars from optimized blocks (ifNotNil:). The tempvars arent't local to the block, but method vars. And the debugger (debuggerMap) doesn't knows about this (this happens on both debuggers AFAIK).
It works in the Squeak debugger. Try e.g. debugging Character space printOn: Transcript
Stephan
2016-01-28 1:37 GMT+01:00 Eliot Miranda <eliot.miranda@gmail.com>:
Hi Nicolai
On Jan 15, 2016, at 4:57 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:
2016-01-15 13:26 GMT+01:00 Stephan Eggermont <stephan@stack.nl>:
When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is aliased?).
Yes, this happens with block vars from optimized blocks (ifNotNil:). The tempvars arent't local to the block, but method vars. And the debugger (debuggerMap) doesn't knows about this (this happens on both debuggers AFAIK).
It works in the Squeak debugger. Try e.g. debugging Character space printOn: Transcript
Yes, thanks Eliot. I try to find out what happens here (opals based debugger map works quite different from squeak compiler infrastructure (parser / handling of optimized block contexts).
Stephan
2016-01-31 10:50 GMT+01:00 Nicolai Hess <nicolaihess@gmail.com>:
2016-01-28 1:37 GMT+01:00 Eliot Miranda <eliot.miranda@gmail.com>:
Hi Nicolai
On Jan 15, 2016, at 4:57 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:
2016-01-15 13:26 GMT+01:00 Stephan Eggermont <stephan@stack.nl>:
When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is aliased?).
Yes, this happens with block vars from optimized blocks (ifNotNil:). The tempvars arent't local to the block, but method vars. And the debugger (debuggerMap) doesn't knows about this (this happens on both debuggers AFAIK).
It works in the Squeak debugger. Try e.g. debugging Character space printOn: Transcript
Yes, thanks Eliot. I try to find out what happens here (opals based debugger map works quite different from squeak compiler infrastructure (parser / handling of optimized block contexts).
I opened a bug report 17434 <https://pharo.fogbugz.com/f/cases/17434/debugger-missing-block-local-var-for...> debugger missing block local var for optimized blocks with a test case and a solution. But I am not satisfied with this. need more time to think about this.
Stephan
@steph,@doru This bug is a good example, why we need to see and be able to interact with 'thisContext' in the Debugger. Am 09.02.2016 8:36 vorm. schrieb "Nicolai Hess" <nicolaihess@gmail.com>:
2016-01-31 10:50 GMT+01:00 Nicolai Hess <nicolaihess@gmail.com>:
2016-01-28 1:37 GMT+01:00 Eliot Miranda <eliot.miranda@gmail.com>:
Hi Nicolai
On Jan 15, 2016, at 4:57 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:
2016-01-15 13:26 GMT+01:00 Stephan Eggermont <stephan@stack.nl>:
When debugging a method containing a block with a parameter, the parameter is missing from the variable list (because it is
aliased?).
Yes, this happens with block vars from optimized blocks (ifNotNil:). The tempvars arent't local to the block, but method vars. And the debugger (debuggerMap) doesn't knows about this (this happens
on both debuggers AFAIK).
It works in the Squeak debugger. Try e.g. debugging Character space printOn: Transcript
Yes, thanks Eliot. I try to find out what happens here (opals based debugger map works quite different from squeak compiler infrastructure (parser / handling of optimized block contexts).
I opened a bug report 17434 debugger missing block local var for optimized blocks with a test case and a solution. But I am not satisfied with this. need more time to think about this.
Stephan
participants (3)
-
Eliot Miranda -
Nicolai Hess -
Stephan Eggermont