Position: Home page » Ethereum » Vscode running Ethereum source code

Vscode running Ethereum source code

Publish: 2021-05-20 23:30:48
1. 1. Preparation. Windows 64 bit system, C disk to reserve a certain space, download and install vs2015 (the official note only supports vs2015, to be verified), cmake I use 3.10.1, the system language to non Unicode language, such as English (U.S.), otherwise there will be errors in the final compilation
2. Project clone to local, project address:
3. Execute submole updata -- init
4. Install script in the directory_ Deps.bat is copied to the root directory and executed. This step will download hunter, boost, libjson, etc. to Disk C, which takes a long time. Please wait patiently
5. Go to the directory of the project and create the build subdirectory,
2.

1. Open the visual studio code tool through a shortcut and create a new static page

3. There are generally two debugging methods:
the first one is to edit the code you want to input directly, and then click "file" to "save". You can see the following figure in the place where you save it. What you save is plain text. You can directly open it (such as using a browser) to see the code statement you compiled. Three words of plain text can be seen in the lower right corner of the image above. Then modify the extension of this folder, such as HTML and JS. If html is generated, the extension is HTML. You can see that this file automatically becomes a web page file. When you open it with a browser, you can see that it is no longer the previous code, but the running result. Modify the statement in vs code to save, and then refresh the web page to get a new result
Second: click the plain text in the lower right corner, and a language will appear at the top for you to choose. After selecting, compile your code, and then save it. Then open your saved file with browser, and the running result will appear. Modify the code, refresh the page after saving, and the modified result will appear.
4. The editor also comes with a native debug function
at present, configuration files are mainly for front-end development, and debug supports node and mono (. Net)
to enable the debug function, mono3.0 must be installed. I need to install node only when debugging. I don't know why< br /> http://www.mono-project.com/download/
click the debug button on the left to automatically generate the debug configuration file in the directory
modify it according to your own needs, then select the configuration to debug on the left, and then run.
5. 1.
install the plug-in according to the code you write
2.
switch to debugging and configure the debugging file (different languages are configured in different ways)
3.
then there is a run button on it (the operation mode is similar to visual
Studio)
6.

The reason why the code language is not supported or defined when writing HTML code in vscode is e to incorrect debugging. The solution is as follows:

1. First, you need to open the vs code software here, and then you can compile the test after creating a new one

7. Visual studio code, vs code can only edit code, no debugging and other commands, used to the compiler, you will find that vs code is a little difficult to start
vs code is opened,

generally, there are two debugging methods:
first, you can directly edit the code you want to enter, and then click "file" to "save". You can see it in the place where you save it. What you save is plain text. You can directly open it (such as using a browser) to see your compiled code statements. Then modify the extension of this folder, such as HTML and JS. If html is generated, the extension is HTML. You can see that this file automatically becomes a web page file. When you open it with a browser, you can see that it is no longer the previous code, but the running result. Modify the statement in vs code to save, and then refresh the web page to get a new result

Second: click the plain text in the lower right corner, and a language will appear at the top for you to choose. After selecting, compile your code, and then save it. Then open your saved file with browser, and the running result will appear. Modify the code, refresh the page after saving, and the modified result will appear.
8. Although vs code is an editor, it can also be used as the front end of GDB to start debugging. The actual call is GDB
click the "bug" icon on the left side of vscode, and then click gear to enable you to configure and start debugging JSON files
just change the name of the startup program to the file you want to debug and save it
in the program, click the line number to make a breakpoint, and then click the "green arrow" to start debugging.
9. The error message is that vscode cannot recognize the node
this is because you open vscode first and then install nodejs. Vscode only reads environment variables at startup

make sure nodejs is added to environment variables, and then restart vscode
10. The simplest way is to use the plug-in, run code, which can run simple scripts, such as PHP fragments, JS fragments, python fragments, etc?
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750