Coder Social home page Coder Social logo

Add `debug parse` command about ursadb HOT 3 CLOSED

cert-polska avatar cert-polska commented on May 14, 2024
Add `debug parse` command

from ursadb.

Comments (3)

chivay avatar chivay commented on May 14, 2024

I'm not sure if modifying language is the way to go.

Why isn't a stderr debug print good enough?

from ursadb.

msm-code avatar msm-code commented on May 14, 2024

Two reasons:

  1. Adding an ad-hoc debug print every time and removing it before the commit sounds tedious. That's pretty common (for me) when writing a new commands.

  2. While parsing is pretty low level (I've chosen it, because it's the easiest debug command I could think of), I have more use cases for this. For example debug querygraph [query] which will return a query graph produced from the input. In the future maybe even debug queryplan [query].

  3. Of course these can all be solved with enough debug prints, but if we continue making new releases and changing the parsers, we may need to debug a compiled ursadb instance, and understanding the querygraph used may be a blessing.

What do you think? 🤔

from ursadb.

msm-code avatar msm-code commented on May 14, 2024

Since @chivay 's not a fan of this change, I don't have a lot of spare time to work on this, and it really is not overly important, we can probably scrap this issue. I don't forsee adding a lot of new commands in the coming months anyway (I expect working on querygraphs, but I can begrudgingly accept debug prints for this).

from ursadb.

Related Issues (20)

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.