Stacktraces
Posted: Wed Apr 08, 2009 12:50 pm
Hi,
I played around a bit with the last informal release. And I tried to get reasonable stack-traces. Therefore I modified the hello.cobra to look as follows:
Now when I run ./cobra -d hello I get:
- which looks very much like what I expected. But now I tried to add detailed stack traces ... et voilĂ ... nothing works
./cobra -d -dst hello
Not very detailed ... is this wanted?
I played around a bit with the last informal release. And I tried to get reasonable stack-traces. Therefore I modified the hello.cobra to look as follows:
- Code: Select all
class Program
def bla is shared
print 'Bla [1+1]'
throw Exception()
def test is shared
print 'Test'
.bla
def main is shared
.test
print 'Hello, world.'
Now when I run ./cobra -d hello I get:
- Code: Select all
Test
Bla 2
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was thrown.
at Program.Bla () [0x0003d] in /home/necoro/cobra/Cobra-Informal-Release-2009-04-07/Source/hello.cobra:5
at Program.Test () [0x00014] in /home/necoro/cobra/Cobra-Informal-Release-2009-04-07/Source/hello.cobra:9
at Program.Main () [0x00005] in /home/necoro/cobra/Cobra-Informal-Release-2009-04-07/Source/hello.cobra:12
- which looks very much like what I expected. But now I tried to add detailed stack traces ... et voilĂ ... nothing works
./cobra -d -dst hello
- Code: Select all
Test
Bla 2
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was thrown.
at Program.Bla () [0x0006e] in /home/necoro/cobra/Cobra-Informal-Release-2009-04-07/Source/hello.cobra:5
Not very detailed ... is this wanted?