Force a stack dump on neko while running?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Force a stack dump on neko while running?

edA-qa mort-ora-y
Is there anyway to force the neko VM to print a stack trace while the
program is running? That is, an external way (a signal on the command
line like the Java VM possibly).


--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

BigTPoker uses haXe and DHLIB
        http://BigTPoker.com/?source=haxe-list

The dis-Emi-A haXe Library
        http://wiki.disemia.com/HaXe
       
A full set of tools, classes, and support facilities aimed at
simplifying and expediting game creation in Flash 9.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.


--
haXe - an open source web programming language
http://haxe.org

signature.asc (260 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Force a stack dump on neko while running?

Nicolas Cannasse
edA-qa mort-ora-y a écrit :
> Is there anyway to force the neko VM to print a stack trace while the
> program is running? That is, an external way (a signal on the command
> line like the Java VM possibly).

On Linux, you might add a small part of C code that use a signal to do
this. Not sure about how to do the same on Windows.

Nicolas

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Force a stack dump on neko while running?

edA-qa mort-ora-y
Nicolas Cannasse wrote:
> On Linux, you might add a small part of C code that use a signal to do
> this. Not sure about how to do the same on Windows.

I'm on linux, so it's not currently possible? I could however add a
signal handler and call (I'm guessing) a stack trace function?

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

BigTPoker uses haXe and DHLIB
        http://BigTPoker.com/?source=haxe-list

The dis-Emi-A haXe Library
        http://wiki.disemia.com/HaXe
       
A full set of tools, classes, and support facilities aimed at
simplifying and expediting game creation in Flash 9.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.


--
haXe - an open source web programming language
http://haxe.org

signature.asc (260 bytes) Download Attachment