__line_number__ and __filename__

Aaron Gray aaronngray.lists at gmail.com
Fri Aug 24 00:26:10 UTC 2018


I am debugging existing code that I have modularized, and am class'izing
that has unittests and it just would have been very useful to have this
facility.

On Fri, 24 Aug 2018 at 00:27, Gus Caplan <me at gus.host> wrote:

> What is the reasoning behind wanting this data? For example, in
> exceptional cases you should be creating errors which already have stacks
> containing this information.
>
> -Gus
>
> ---- On Thu, 23 Aug 2018 17:56:43 -0500 *Aaron Gray
> <aaronngray.lists at gmail.com <aaronngray.lists at gmail.com>>* wrote ----
>
> I wondering what people think about the idea of proposing being able to
> get the line number and filename of executing code in the code ? Maybe with
> something simular to C preprocessors __line_number__ and __filename__. Or
> as subobjects of global ?
>
> --
> Aaron Gray
>
> Independent Open Source Software Engineer, Computer Language Researcher,
> Information Theorist, and amateur computer scientist.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
>
>

-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180824/6ea58e93/attachment-0001.html>


More information about the es-discuss mailing list