Giter VIP home page Giter VIP logo

Comments (4)

iiian avatar iiian commented on June 9, 2024 1

Hey @travisstaloch!

i see output alles gut

Yeah, this is my fault, I should have made more apparent the issue that my minimum repo is trying to demonstrate -- it's an issue that only crops up during debugging. As mentioned above, the issue is that the debugger (after the predicate evaluates false resulting in a requisite skip of the while block) shows that execution has jumped to the last line inside the while block, instead of the first line after/outside of the while block.

from zig.

travisstaloch avatar travisstaloch commented on June 9, 2024

when i run this w/ 0.12.0-dev.1871+e426ae43a, i see output alles gut. so i think this means it has been fixed. i wish i could point to an issue or pull request where it changed but i can't think of anything at the moment.

from zig.

iiian avatar iiian commented on June 9, 2024

Steps to reproduce:

  • zig build
  • Set a break point on the first line of Weird.next()
  • In VS Code, run the launch job Zibug Tests
  • Step through, until the while loop should be seemingly skipped
  • Observe that the instruction jumps briefly to the end (inside) of the while block (it seems to be an off by one alignment thing), although note that nothing happens.
  • Press step over again -- note that we've made it to the place we expected to get to -- outside the while block (which will ultimately result in an alles gut)

from zig.

iiian avatar iiian commented on June 9, 2024

Closing this issue, as I've done a poor job of explaining it, and will reopen the issue in kind.

from zig.

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.