mys icon indicating copy to clipboard operation
mys copied to clipboard

debugger entry points

Open pmp-p opened this issue 5 years ago • 0 comments

all compiler or runtime errors that could happen at various stage of using "mys" command, if able to get a source filename, maybe a line number and optionnal colummns + an error message should adress a call to a function (eg builtins.mys_debug ) loaded from a module that could be overridden from command line eg :

--debug=mymodule

try:
    __import__(mymodule)
except:
    def mys_debug(*argv,**kw):
        pass # or the default fancy display with colors as an example.
    import builtins
    builtins.mys_debug

this is mainly for interacting with IDE and/or when compiling remotely to give a translated filename.

pmp-p avatar Jan 31 '21 11:01 pmp-p