Re: request for feature in Phix

new topic     » goto parent     » topic index » view thread      » older message » newer message
katsmeow said...

I have asked for the following feature to be in OE, to no avail.

To know the names of the variables, even in a restricted way, and the values of those vars, as demo'd in a hacked-OE way here:

http://designerthinking.com/images/KNOWVARS.GIF

that is running OE code and i do use that feature in writing code in other language.

I can't see the image, but something like this already exists in OE 4.1 - as long as you are doing it interpreted. (There's no support for this in the translator.)

You should be able to include euphoria/debug/debug.e and call something like debug:initialize_debugger(machine_func(M_INIT_DEBUGGER, {})) and then call debug:get_symbol_table() and then search the result for the variables.

This has been mentioned a couple of times already: http://openeuphoria.org/forum/m/127983.wc http://openeuphoria.org/forum/m/118515.wc

katsmeow said...

[Perhaps] it can be in Phix?

If I had to guess, I'd say probably. IIRC Phix doesn't have IL or bytecode, it goes straight from Euphoria syntax to assembly language - but despite being a compiler, IIRC it can print out an ex.err with variable names and information for runtime errors.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu