Re: recent commit breaks multi-module debugging
Bill Clementson <[email protected]> Tue, 19 Jun 2007 16:34:30 -0700
| Newsgroups | gmane.comp.lang.erlang.distel.devel |
|---|---|
| Message-ID | <[email protected]> |
Matthias Radestock <[email protected]> writes: > Bill Clementson <[email protected]> writes: > >>> I submitted the patch. I was encountering a situation where I would be >>> debugging a module in a node, would lose the connection to the node, >>> and, after re-attaching to the node, would not be able to set >>> breakpoints or debug any module. > > Strange. I don't think I've encountered this, certainly not consistently > enough for it to become noticeable as a problem. I was encountering it on a regular basis. However, I often debug in the Emacs Erlang shell node and not in a separate Erlang node so maybe that might be a factor. >> Try the following patch (which reverses my mod to edb.el and makes the >> mod in erl-choose-nodename instead) and let me know if it works better >> for you. > > erl-choose-nodename is a better place since it at least doesn't break > multi-module debugging. I am not sure it's the *right* place > though. What if you want to debug across multiple modules? I've never > tried that, but I think it's possible. Your patch would probably break > that. How would my new patch break multiple module debugging? If all modules are running in the same node, it should have no impact at all. Did you mean "across multiple *nodes*"? If so, then yes my patch would reset the distel interpreted status every time you switched nodes. However, the break points that are set in the node would still exist. When you switch from one node to another, you would need to toggle on interpreted status for a buffer. I just tried this with two separate nodes (with different breakpoints set in each node) and it seemed to work ok for me. Could you test it and see whether it works for you and let me know whether you encounter any problems. -- Bill Clementson ------------------------------------------------------------------------- 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/