Giter Site home page Giter Site logo

Print back trace upon failure about clar HOT 2 CLOSED

martijnthe avatar martijnthe commented on August 16, 2024 1
Print back trace upon failure

from clar.

Comments (2)

vmg avatar vmg commented on August 16, 2024 1

Indeed it would, but Clar is meant to run in both Linux (GCC, Clang) and Windows (MSVC), and as far as I know there's no straightforward or crossplatform way to print this kind of traces in both platforms. :(

I'm of course up for suggestions!

from clar.

ethomson avatar ethomson commented on August 16, 2024

Indeed, this would be useful, but it's really the thing that you're testing that needs to produce the stack trace. I'd be happy to support simplifying this as much as possible, but fundamentally cl_assert(...) just calls a function. If that function fails 15 calls deep, you need a way to report that up. This means either your app knowing how to report it to clar, or clar knowing how to get that information from your app. Simply calling backtrace() won't help once the call has exited and we know that we've failed.

I'm closing this but if you have a concrete plan for more general support that would be 👍

from clar.

Related Issues (12)

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.