Re: Debugger for 4.1
- Posted by mattlewis (admin) Apr 27, 2011
- 1601 views
The goal is to make the debugger more open so that users can build their own debuggers (GUIs, etc). A lot of how exactly these things will work is still up in the air.
This is still in very early mode, but I've got a proof of concept, extremely simple, but functional debugger working. It can work either by including it directly into your euphoria code, or by building it into a dll/so. Eventually, the dll/so option will probably be a command line / eu.cfg option, but for now, you have to do something like:
include std/dll.e constant SIMPLE = open_dll("./simple_debug.so"), INIT = define_c_proc( SIMPLE, "initialize_debugger", { E_ATOM } ) c_proc( INIT, { machine_func( 104, {} ) } )
Put that at the top of your code, and then subsequent tracing will not use the built-in debugger. Still lots of features to add and wrap (a lot of the things that are already implemented in the standard debugger haven't been exposed yet).
Matt
PS I doubt anyone besides me has been using the 64-bit version of euphoria yet, but there are problems translating 64-bit shared libraries from euphoria code, so the above translated debugger only works in 32-bit mode for now.