Coder Social home page Coder Social logo

Return and quit commands about godebug HOT 6 CLOSED

mailgun avatar mailgun commented on July 2, 2024
Return and quit commands

from godebug.

Comments (6)

jeremyschlatter avatar jeremyschlatter commented on July 2, 2024

Sure. Quit is really easy, so I've already added it. Return shouldn't be much harder, and is also useful.

from godebug.

jeremyschlatter avatar jeremyschlatter commented on July 2, 2024

Return from current function: what should the command be called? @glycerine says that it is "fin" in gdb. pdb calls this "return". pdb also has "up" and "down" commands that let you move up and down the stack, so that "up" and then "next" does almost the same thing as "return".

Thoughts? I think I prefer pdb's scheme.

from godebug.

willfaught avatar willfaught commented on July 2, 2024

I would name it "return" because it's self-documenting, and on the off-chance this is ever localized, it doesn't make sense to use a French word where English is used everywhere else.

It's been a while since I used pdb, but I thought up and down let you examine other stack frames, but didn't affect execution?

from godebug.

jeremyschlatter avatar jeremyschlatter commented on July 2, 2024

Right, up and down don't affect execution, which is cool. I mentioned them because "up" followed by "next" is similar to "return".

I prefer "return", too. @glycerine, does that sound good to you?

from godebug.

glycerine avatar glycerine commented on July 2, 2024

@jeremyschlatter I don't mind 'return' -- as long as the short to type abbreviation 'r' also suffices to the same effect!

from godebug.

jeremyschlatter avatar jeremyschlatter commented on July 2, 2024

@glycerine Of course :)

from godebug.

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.