Setting Breakpoints to Read Code

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

Setting Breakpoints to Read Code

Aditya Siram
Hi all,
I am new to Squeak and its debugging interface. I am trying to get a handle
on Seaside by setting breakpoints on the methods in the example apps.

Is there a way to bulk set breakpoints for all classes and methods in the
Seaside package(or any other package) ? I would like to see exactly what
code is being executed at any given time. Is there an easier way?

Thanks...
Deech

_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Setting Breakpoints to Read Code

Jeroen van Hilst
Aditya,

You can put this inside any method:

self halt. "Will show up a stack trace"

    - Jeroen


"Aditya Siram" <[hidden email]> wrote in message
news:[hidden email]...
> Hi all,
> I am new to Squeak and its debugging interface. I am trying to get a
handle

> on Seaside by setting breakpoints on the methods in the example apps.
>
> Is there a way to bulk set breakpoints for all classes and methods in the
> Seaside package(or any other package) ? I would like to see exactly what
> code is being executed at any given time. Is there an easier way?
>
> Thanks...
> Deech
>
> _________________________________________________________________
> Get a FREE Web site, company branded e-mail and more from Microsoft Office
> Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

RE: Re: Setting Breakpoints to Read Code

Aditya Siram
Thanks for your input. However, I am trying to get handle on Seaside with
lots of methods and a confusing (at least for me since I have no experience
with web frameworks) control flow. I would like to run one of the examples
and see what method is being interpreted at each step. Is there a way I can
add breakpoints to all the methods in a certain package?

Thanks...
Aditya

>From: "Jeroen van Hilst" <[hidden email]>
>Reply-To: "A friendly place to get answers to even the most basic
>questionsabout Squeak." <[hidden email]>
>To: [hidden email]
>Subject: [Newbies] Re: Setting Breakpoints to Read Code
>Date: Sat, 5 May 2007 00:51:53 +0200
>
>Aditya,
>
>You can put this inside any method:
>
>self halt. "Will show up a stack trace"
>
>     - Jeroen
>
>
>"Aditya Siram" <[hidden email]> wrote in message
>news:[hidden email]...
> > Hi all,
> > I am new to Squeak and its debugging interface. I am trying to get a
>handle
> > on Seaside by setting breakpoints on the methods in the example apps.
> >
> > Is there a way to bulk set breakpoints for all classes and methods in
>the
> > Seaside package(or any other package) ? I would like to see exactly what
> > code is being executed at any given time. Is there an easier way?
> >
> > Thanks...
> > Deech
> >
> > _________________________________________________________________
> > Get a FREE Web site, company branded e-mail and more from Microsoft
>Office
> > Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
>
>
>
>_______________________________________________
>Beginners mailing list
>[hidden email]
>http://lists.squeakfoundation.org/mailman/listinfo/beginners

_________________________________________________________________
Download Messenger. Join the i’m Initiative. Help make a difference today.
http://im.live.com/messenger/im/home/?source=TAGHM_APR07

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re: Setting Breakpoints to Read Code

Herbert König
Hello Aditya,


AS> Thanks for your input. However, I am trying to get handle on Seaside with
AS> lots of methods and a confusing (at least for me since I have no experience
AS> with web frameworks) control flow. I would like to run one of the examples
AS> and see what method is being interpreted at each step. Is there a way I can
AS> add breakpoints to all the methods in a certain package?

you just need one breakpoint at top level and with the debugger you
can step into every method you find interesting. If you want to follow
the iterations of a loop you need the "trough" button.

If you want static control flow, get the Tracing Messages Browser from
SqueakMap. Using senders and implementors there will give you an
indented list of the calls.

I guess your original wish would be doable as Squeak is very good in
meta programming but imho you'll only clutter up your screen with
debuggers.

I have no knowledge about Seaside myself, so I can't tell you where to
put the top level breakpoint.

If my suggestions prove impractical (Seaside might use many parallel
processes) try asking again with a new subject.

And I don't think the inner workings of seaside belong to "the most
basic questions about Squeak", so maybe try Squeak-dev or the seaside
mailing list.

Please find the lists at:
http://lists.squeakfoundation.org/mailman/listinfo

Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners