1. Debugger for 4.1

We have a few tickets regarding or related to the debugger:

  • ticket:506 Move debugger code into the front end
  • ticket:622 Allow runtime and debugger inspection of the call stack
  • ticket:623 Different debuggers (e.g., console style, similar to gdb)

I've started a new branch (debugger) to work on this, and so far, I've got the ability to fetch the call stack. So far, it lists the routine name, file name and line number for each level of the call stack. It will probably grow to include more low level detail that will be required for other euphoria coded debuggers.

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.

Matt

new topic     » topic index » view message » categorize

2. Re: Debugger for 4.1

mattlewis said...

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu