Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to debug existing notebook in workbench?

50 views
Skip to first unread message

Nasser M. Abbasi

unread,
Dec 16, 2010, 5:51:31 AM12/16/10
to
Hello;

I am learning workbench. It is a little confusing to use for me
since it is not integrated with Mathematica itself, but here is
my question:

THe way I understand it so far, one creates a project, then there
appear 2 files A.m and A.nb.

One writes the function to debug in A.m, and then in A.nb, makes
a call to the function. Then debugger jumps to A.m and one can
step into the function.

This works ok so far.

But how do I debug an existing notebook? This is the part
which I can't figure out.

Suppose I have a notebook in ~/home/c.nb, and it in, there
in many functions, and a cell which calls these functions.

How do I tell workbench to open c.nb to debug and allow me
to put a break point there?

And yes, I did view the movies at WRI on workbench, but
they never seem to describe this part.

ps. Any plans to have debugger be integrated inside mathematica
itself so one does not need to start a new application to debug
code?

thanks
--Nasser

Patrick Scheibe

unread,
Dec 17, 2010, 3:28:12 AM12/17/10
to
Hi,

you have your project inside the Workbench. Click on "debug" and the
Workbench will start a new debug session for you which includes that
it opens a Mathematica and an empty notebook for you.

Inside this Mathematica debug session you should be able to open
any notebook and if you have set breakpoints inside the Workbench code,
then a call from any notebook inside this debug session should stop at
the breakpoint.

Cheers
Patrick

0 new messages