Giter VIP home page Giter VIP logo

Comments (3)

maddinat0r avatar maddinat0r commented on June 12, 2024

Printing the format string will very likely only help in cases where the format string is long and complicated, e. g. distinguishable/unique. Most sscanf calls are likely to have only a few format specifiers.
I'll use my log-core library for that when it's ready, as it reports at which line exactly a faulty sscanf call is.

from sscanf.

NexiusTailer avatar NexiusTailer commented on June 12, 2024

I'll use my log-core library for that when it's ready, as it reports at which line exactly a faulty sscanf call is.

That exactly what is needed to do now when log-core is done. Do you still maintain this and have an opportunity to finally add this functionality of logging a specific line from pawn script on which sscanf is faced with a problem? This is still very relevant and several people asked me to create a similar issue here, but it seems you did it much earlier 😄

from sscanf.

Y-Less avatar Y-Less commented on June 12, 2024

OnError (or OnSSCANFError is an option. The other option is the true (secret hidden) meaning of the sscanf return values. 0 has always meant "no error", but in the first pawn version of sscanf any other value returned was actually the index (+ 1) of the specifier that caused the error. I should re-introduce that feature.

I also have file and line information on errors now, so when you do get an error you can at least read more detailed information in the console on where it came from.

from sscanf.

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.