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: