addr ) //check to see if account is valid var isValid = algosdk. mnemonicToSecretKey ( mnemonic ) console. Name this file ASC1.jsĬonst algosdk = require ( 'algosdk' ) //Retrieve the token, server and port values for your installation in the //and algod.token files within the data directory or use a standup instance if available //TestNet const token = "your token" const server = "" const port = 8080 //Recover the account var mnemonic = "awake used crawl list cruel harvest useful flag essay speed glad salmon camp sudden ride symptom test kind version together project inquiry diet abandon budget" var recoveredAccount = algosdk. Here is a sample JavaScript file to test with which uses the Algorand Smart Contract Layer 1 (ASC1).
VISUAL STUDIO CODE JAVASCRIPT EXTENSIONS CODE
The editor should pop up with the launch.json file.Ĭhange the name and program to match your code file to debug. VS Code stores debug configurations in a file called launch.json inside of the. Here the section is set to Node.js: Launch Program.įigure 4-2 - Select Node.js: Launch Program The steps are similar for all languages.ī) Select from the drop-down menu to Add Config (for the current folder)… In this step, setting up a debug session for a JavaScript code is covered for both a standalone code file as well as through a browser. Debugging JavaScript with VS Code samples Optionally, keyboard shortcuts and keymap extensions, which match other editors, are available here:Ĥ. Debugging with VS Codeįor general information on setting up debugging in VS Code see this: Filter the extensions list by typing your programming language of choice, such as JavaScript, and you will see all related extensions.įigure 2-1 JavaScript Marketplace Extensions 3. Visual Studio Code includes built-in JavaScript IntelliSense, debugging, formatting, code navigation, refactorings, and many other advanced language features.