Go language liteide installation and use

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

Here, take Windows7 64-bit as an example, if the 32-bit environment needs to install the corresponding version of the program.

  First, install the golang1.2.2 1.3 and 1.3.1 Compile the generated binaries and cannot be debugged using the gdb7.7 carried by LiteIDE23.2.



second, installation and configuration Liteide unzip the liteidex23.2.windows.7z to D:\ to complete the installation.   2.1 Setting up an editing environment because it is a 64-bit environment, select "Win64". View the Edit environment variable to confirm that the Goroot variable matches the go installation path.  

2.2 Adding Gopath

View Management Gopath ..., create a new directory E:\Code_Repository\golang, and add it to the custom directory.

2.3 New Project Select the Gopath that you added in the previous step, and the template is Go1 Command Project
Edit the source code and add a few lines of code, including variable declaration, initialization, and assignment, to verify that debugging is in effect.
2.4 Setting compilation options and compiling Compile -and-compile configuration, set compilation parameters. Add -gcflags "-n-l"in Buildargs to eliminate compilation optimizations and facilitate debugging.
Ctrl+b Build the project, build the Hello.exe
2.5 Debugging Programs Press F5 to start debugging, the program stops at the main function
with F10 single-step debugging, you can see the changes of I and J (as if it were slightly delayed by 0. x seconds)
post-run results:

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.