From: Torben K. <tk...@es...> - 2012-10-11 07:11:05
|
Hera and Uwe I am happy it works for you. Still, it doesn't work perfectly for me. I can do the commands dbstop, dbstep etc. in the matlab-shell but there is nothing showing in any other window. However if I do M-g n (matlab-shell-last-error) then a buffer is show with the mark on the relevant linie. If I do dbstep nothing happens before I do M-g n again. Still I think it would be nice if there were a short up to date introduction to using matlab though emacs. Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826 Section of Automation and Control, Department of Electronic Systems, Email : tk...@es... Aalborg University Web : es.aau.dk/staff/~tk Fredrik Bajersvej 7 DK-9220 Aalborg Ø Denmark ________________________________ Fra: her...@gm... [her...@gm...] på vegne af Hera He [nj...@gm...] Sendt: 11. oktober 2012 00:10 Til: Uwe Brauer Cc: Torben Knudsen; mat...@li... Emne: Re: [Matlab-emacs-discuss] Debugging intro? Hi Uwe and Torben, Thank you so much for your replies!! It is working with me now! And I also found there is another way of debugging using GUD(Grand Unified Debugger), so we have all kinds of shortcuts for continue, step and next etc. you could check out the info page by M-x gud-goto-info. Thank you guys again!! Cheers, Hera On Wed, Oct 10, 2012 at 2:28 AM, Uwe Brauer <ou...@ma...<mailto:ou...@ma...>> wrote: >> On Wed, 10 Oct 2012 07:30:50 +0000, Torben Knudsen <tk...@es...<mailto:tk...@es...>> wrote: > I have used matlab-mode for years. Never the less I am also missing a > short guide to setting up everything in a convenient way. I simply > use the matlab db commands in the matlab-shell window but I do not > know how to make some pointer follow the relevant source code. Also, > I tried to look into a good way of using ECB yesterday but kind of ran > out of time before figuring out something. Maybe I miss something elementary. I do the following. (Using Xemacs 21.5.32 (GNU emacs is a little nicer with debugging but anyhow) In my matlab file, say test.m I start the matlab shell Then I do in the shell: >> dbstop test dbstop test >> test test 3 clear all K>> dbstep dbstep 4 A=[0 1 -1;-3 4 -1;-1 1 2] K>> dbquit dbquit >> So the window is split and repeating dbstep I see an arrow advancing in the m file and the result in the shell. It is not as nice as the emacs edebug function for lisp, but it is good enough. Uwe Brauer |