GTDebugger missing block parameters?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

GTDebugger missing block parameters?

Stephan Eggermont-3
When debugging a method containing a block with a parameter,
the parameter is missing from the variable list (because it is aliased?).

Stephan

Screenshot from 2016-01-15 13:19:22.png (264K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GTDebugger missing block parameters?

Nicolai Hess-3-2


2016-01-15 13:26 GMT+01:00 Stephan Eggermont <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: GTDebugger missing block parameters?

Eliot Miranda-2
Hi Nicolai

On Jan 15, 2016, at 4:57 AM, Nicolai Hess <[hidden email]> wrote:



2016-01-15 13:26 GMT+01:00 Stephan Eggermont <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: GTDebugger missing block parameters?

Nicolai Hess-3-2


2016-01-28 1:37 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Nicolai

On Jan 15, 2016, at 4:57 AM, Nicolai Hess <[hidden email]> wrote:



2016-01-15 13:26 GMT+01:00 Stephan Eggermont <[hidden email]>:
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


Reply | Threaded
Open this post in threaded view
|

Re: GTDebugger missing block parameters?

Nicolai Hess-3-2


2016-01-31 10:50 GMT+01:00 Nicolai Hess <[hidden email]>:


2016-01-28 1:37 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Nicolai

On Jan 15, 2016, at 4:57 AM, Nicolai Hess <[hidden email]> wrote:



2016-01-15 13:26 GMT+01:00 Stephan Eggermont <[hidden email]>:
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



Reply | Threaded
Open this post in threaded view
|

Re: GTDebugger missing block parameters?

Nicolai Hess-3-2


@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" <[hidden email]>:
>
>
>
> 2016-01-31 10:50 GMT+01:00 Nicolai Hess <[hidden email]>:
>>
>>
>>
>> 2016-01-28 1:37 GMT+01:00 Eliot Miranda <[hidden email]>:
>>>
>>> Hi Nicolai
>>>
>>> On Jan 15, 2016, at 4:57 AM, Nicolai Hess <[hidden email]> wrote:
>>>
>>>>
>>>>
>>>> 2016-01-15 13:26 GMT+01:00 Stephan Eggermont <[hidden email]>:
>>>>>
>>>>> 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
>>>>
>>>>
>>
>