help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

keyboard or dbstop


From: Helios de Rosario
Subject: keyboard or dbstop
Date: Tue, 04 Feb 2014 10:31:21 +0100

(It was Re: showtrainprogress: invalid conversion from NaN to logical)

>>> On 30/01/2014 at 23:24, Philip Nienhuis <address@hidden>
wrote:

[... snip the error report of the OP, which I think is not crucial for
my question ...]

> You can safely assume that Octave doesn't complain about the if
statement in
> L. 304 for nothing. So the question is how to find out what is wrong
there.
> 
> Well, insert a keyboard statement in empty line 302 and run your
code.

I would have set a breakpoint with
dbstop("/home/syedk/OCT/nnet/tests/MLP/__trainlm.m", 302) instead. I
always felt that debugging with "keyboard" is quite uncomfortable,
because you must edit the file once and again. But I also wondered if
there is some reason that I'm missing, why it could be more
recommendable in some cases. Do you have such reason for recommending
inserting the keyboard statement in this case? Or it is just a matter of
taste?

Thanks
Helios De Rosario


INSTITUTO DE BIOMECÁNICA DE VALENCIA
Universidad Politécnica de Valencia • Edificio 9C
Camino de Vera s/n • 46022 VALENCIA (ESPAÑA)
Tel. +34 96 387 91 60 • Fax +34 96 387 91 69
www.ibv.org

  Antes de imprimir este e-mail piense bien si es necesario hacerlo.
En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
de Datos de Carácter Personal, le informamos de que el presente mensaje
contiene información confidencial, siendo para uso exclusivo del
destinatario arriba indicado. En caso de no ser usted el destinatario
del mismo le informamos que su recepción no le autoriza a su divulgación
o reproducción por cualquier medio, debiendo destruirlo de inmediato,
rogándole lo notifique al remitente.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]