About GDB Debugging the Go Language program appears in the OS. Problems with args not printing

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

About GDB Debugging the Go Language program appears in the OS. Problems with args not printing


In fact, the problem to the current position is almost no solution. (So far, no gdb has been put in)

http://comments.gmane.org/gmane.comp.lang.go.general/117243


is indeed able to pass ' OS. Args ' Way to print

And at the same time, GDB, for C + + and go, their print method is actually different.

Pro-Test, in C, when debugging with GDB can be used to turn a strong address after the use of the string to print. But the same approach doesn't work in go.

This is simply sad ... I toss it for half a day, or no fruit. The go language is still relatively new. It often means that it is imperfect. There is no well-equipped debugging tool. GDB's support for Go is certainly not good for C, so many years of accumulation are there.


Suddenly there is a feeling, thinking about programming language. What exactly is the programming language called a good language?

It is foolish to think that not only is the syntax clear enough, the assembler code generated by the language compiler is sufficiently streamlined and must have a powerful debugging tool.

C has been so widely circulated that it has been such a dick for decades. The audience is not just the big cows that don't need to be debugged, there's a whole bunch of programming beginners, anyway, programming is going to make mistakes. For ordinary people, there are bugs to be debugger.


Also have to sigh, decades ago those giants are too bull, no gdb, GitHub, Google, the program is also transferred out, but for a want to be widely circulated, become an important tool of social programming language, missing a perfect debugger, it means that the language of failure.


Oh, humble opinion, pull a light just ... Beginner Go




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.