Since I have your attention today one more feature request.
I've been trying to concoct another script today, or rather an extension, and have a really hard time trying to figure things out. Sample code fro the help file seemed not to work, so I was fumbling in the dark. Sadly, the only debugging tool we have right now is ShowMessage(), which is rather limited. Would it be possible to have something like PHP's var_dump() function, spitting its output into Messages panel?
Herb are two links I found; perhaps they will be useful to you:
https://github.com/correaelias/TypeUtils
https://stackoverflow.com/questions/923 ... -in-delphi
Better debug for scripts?
Better debug for scripts?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
- Rickard Johansson
- Site Admin
- Posts: 6651
- Joined: 19 Jul 2006 14:29
Re: Better debug for scripts?
Added script function "MainApp.OutputDebugString(const text: string; value: Variant)" in next release.
"value" can be an integer, float, date, boolean or string. It's written to the message panel as text + ' ' + value.
Hope that helps a little
"value" can be an integer, float, date, boolean or string. It's written to the message panel as text + ' ' + value.
Hope that helps a little
Re: Better debug for scripts?
Cool! Thanks a lot!
Will it work with objects, though, like e.g. TElMainMenu? E.g.
brings up message "not enough parameters" and then I'm stuck, getting "index required", "undeclared identifier", "not enough parameters" or null response for various crazy combinations I tried out. Or a nice access violation
Will it work with objects, though, like e.g. TElMainMenu? E.g.
Code: Select all
ShowMessage(TElMenuItem.Items);
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus