octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60174] debug_on_interrupt does not change the


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #60174] debug_on_interrupt does not change the effect of Ctrl+C
Date: Fri, 5 Mar 2021 07:38:26 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

URL:
  <https://savannah.gnu.org/bugs/?60174>

                 Summary: debug_on_interrupt does not change the effect of
Ctrl+C
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: ven. 05 mars 2021 12:38:24 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I recently discovered the existence of debug_on_interrupt which I wanted to
use as a way to interrupt temporarily a calculation and inspect variables
before proceeding.

Unfortunately I was not able to have it work: whether debug_on_interrupt is
true or false, Ctrl+C interrupts the script and returns to the prompt. For
example I saved the following function in a file toto.m (which attached to
this report), and then ran it but Ctrl+C interrupts it rather than leading to
debug prompt.


function retval = toto (input1, input2)
  debug_on_interrupt (true, "local");
  while (true)
    a = 2;
  endwhile
endfunction
 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: ven. 05 mars 2021 12:38:24 UTC  Name: toto.m  Size: 127o   By: pantxo

<http://savannah.gnu.org/bugs/download.php?file_id=50992>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60174>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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