[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using debug_on_warning
From: |
Markus Appel |
Subject: |
Re: Using debug_on_warning |
Date: |
Tue, 25 Feb 2014 17:09:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 02/18/2014 10:43 PM, Thomas Weber wrote:
> Hi,
> it seems I do not groke how to use debug_on_warning:
>
> ==============================
> octave:1> debug_on_warning (1)
> octave:2> debug_on_error (1)
> octave:3> matlab2tikz_acidtest("testFunctionIndices", [4])
> Executing test case no. 4...
> warning: implicit conversion from matrix to sq_string
> markerSizes done (1.62s).
>
> octave:4> isdebugmode
> ans = 0
> octave:5> ver
> ----------------------------------------------------------------------
> GNU Octave Version 3.8.0
> GNU Octave License: GNU General Public License
> Operating System: Linux 3.12-1-amd64 #1 SMP Debian 3.12.9-1 (2014-02-01)
> x86_64
> ----------------------------------------------------------------------
> no packages installed.
> ==============================
>
> Shouldn't Octave drop me into the file/function where the warning is
> raised?
>
> Thomas
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
This warning can be caused e.g. by printf("%s",5) when the argument is
converted implicitly to string type. When I put only that command in a
script file and execute it with debug_on_warning enabled, octave 3.8.0
drops as expected into debug mode. You can send your function file for
more information.