GithubHelp home page GithubHelp logo

Comments (4)

bjoernQ avatar bjoernQ commented on July 28, 2024

I'm not too familiar with defmt to be honest. Probably error!() is more like dbg! from the std-lib, then?
Sounds like you probably only want one invocation of error! in your implementation

By "should I add this functionality to esp-println" you mean printing the source code location? I don't think we should do that for println but if you like you can add a dbg macro just like https://github.com/rust-lang/rust/blob/efa717bc2d82c19c6957f362a936a6f95169d138/library/std/src/macros.rs#L339-L361 to esp-println

Otherwise, happy to receive a PR for this

from esp-backtrace.

TheButlah avatar TheButlah commented on July 28, 2024

By "should I add this functionality to esp-println" you mean printing the source code location?

No, I meant should I add a print-defmt feature to esp-println. I'm not sure if its a good match because defmt introduces its own formatting by attaching line numbers and log levels to each print. See this example:
Screen Shot 2022-09-19 at 12 24 20 PM

from esp-backtrace.

jessebraham avatar jessebraham commented on July 28, 2024

I'm just starting to learn defmt myself, but esp-println at least has support for it now. Maybe somebody can tackle this issue.

from esp-backtrace.

bjoernQ avatar bjoernQ commented on July 28, 2024

I guess this is covered by #43

from esp-backtrace.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.