Re: Questions

"Kirill Zaborski" <[email protected]> Tue, 5 Jun 2007 09:03:54 +0300
Newsgroups gmane.comp.lang.erlang.distel.devel
Message-ID <[email protected]>
On 6/5/07, Bill Clementson <[email protected]> wrote:
Hi Kirill,
>
> I think I've found the problem (at least, the problem I was
> experiencing). Apply the attached patch to distel/elisp/edb.el and let
> me know if this helps matters for you. Please do the following steps
> to see if it works:
>
> 1. Open an erlang file (say "myfile.erl") in an emacs buffer and start
> up an erlang shell. In the erlang node (shell), do: c("myfile.erl",
> [debug_info]).
> 2. In your emacs myfile.erl buffer, press "C-c C-d n" and specify the node
> 3. In your emacs myfile.erl buffer, press "C-c C-d L" to reload
> 4. In your emacs myfile.erl buffer, press "C-c C-d i" to toggle
> interpreting. If it says that interpreting is stopped, press "C-c C-d
> i" 1 more time to start interpreting. However, if it says that
> interpreting is started, press "C-c C-d i" 2 more times to stop and
> re-start interpreting.
> 5. In your emacs myfile.erl buffer, put the cursor on a source line
> and press "C-x SPC" to set a breakpoint. If the breakpoint is
> highlighted in orange - GREAT! If it's highlighted in blue - press
> "C-c C-d s" to sync the breakpoint.
> 6. In the erlang node (shell), run an erlang function that will hit
> the breakpoint.
>
> At this point (hopefully), you should be debugging erlang code in
> emacs. There are probably some things that can be done to streamline
> the above process; however, if you try the steps exactly as I outlined
> them above, that should tell me whether the fix is working for you.
>

Thanks for your efforts Bill but it doesn't work for me.
I've applied the patch and run all the steps. When I tried to turn off
(after turning it on) the interpreting mode 'nodedown' message
appeared - the rest was the same as before.
I've tried to use stand-alone node with the same result.
It looks like emacs can not find the node for debugging. But
expression evaluation works quite fine and process list also.

Regards,
Kirill.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/