preferred way to invoke debugger

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

preferred way to invoke debugger

Ben Coman
What is the replacement for...?
    [ Smalltalk tools debugger
          openContext: self
          label:'Code simulation error'
          contents: nil].

In adding support to simulate new OwnedLock primitives, I see this is sent from
Context>>doPrimitive:method:receiver:args:
but this is no longer in the image.  I can update it as I go.

cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: preferred way to invoke debugger

Denis Kudriashov
Hi.

Now you should first create DebugSession:

debugSession := Processor activeProcess newDebugSessionNamed: 'Code simulation error' startedAt: self.
Smalltalk tools debugger openOn: debugSession withFullView: true.

2016-02-21 4:34 GMT+01:00 Ben Coman <[hidden email]>:
What is the replacement for...?
    [ Smalltalk tools debugger
          openContext: self
          label:'Code simulation error'
          contents: nil].

In adding support to simulate new OwnedLock primitives, I see this is sent from
Context>>doPrimitive:method:receiver:args:
but this is no longer in the image.  I can update it as I go.

cheers -ben