Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Adam J. on July 02, 2019, 12:58:41 am



Title: Decompile .42m
Post by: Adam J. on July 02, 2019, 12:58:41 am
Hey all,

Is there any way to decompile a .42m file?

I unfortunately deleted my source code and wasn't in source/version control facility. I know... my bad!

Cheers,

Adam


Title: Re: Decompile .42m
Post by: Reuben B. on July 03, 2019, 12:33:48 am
FYI I have corresponded with Adam via support portal, and given him a few pointers to assist in rewriting a .4gl.  For instance running strings on the .42m, FGLSQLDEBUG can tell you what SQL statements are run, both profiler and trace can tell you what functions are called, the AUI Tree can be used to see what actions, fields are used for each dialog etc, and you do not need source to run the debugger.   So if you accidentally delete .4gl in your working directory, there are a few clues available to help piece parts of your .4gl back together.

Fortunately I have never had to do this on a larger scale, but if you do, please contact your support contact.  There is no "fglrun --decompile filename.42m > filename.4gl" but all is not lost either.

Reuben