[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run comman
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command |
Date: |
Fri, 15 Apr 2016 11:37:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #12, bug #33411 (project octave):
Philip, the file foo.m defines a function "foo". It is not a script. When
you source the file, it places the function "foo" in the symbol table, rather
than executing it. That is why it doesn't print "Hello!", and why it is a
command line function after running the file.
The bug in my code is that I call "find" to see if the symbol is already in
the symbol table, but I didn't realise that "find" actually loads the symbol.
Thus, after the find(), "foo" already points to the function and is not
considered a "script".
I'll have to find a way to query the symbol table without loading a symbol.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33411>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/07
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Philip Nienhuis, 2016/04/12
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/14
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command,
Lachlan Andrew <=
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/15
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/15
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/15
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Lachlan Andrew, 2016/04/15
- [Octave-bug-tracker] [bug #33411] Breakpoints aren't hit with run command, Philip Nienhuis, 2016/04/28