![]() ![]() What's more awesome is that the default launch configurations take advantage of the NativeScript CLI functionality. ![]() You can find more information about the debugging support in Visual Studio Code in the VS Code Debugging Guide. Once the debugger is attached you can inspect scope variables, set breakpoints, watch expressions, execute code while the app is paused on a breakpoint etc. If you want the execution to stop on the first JavaScript/TypeScript statement, functionality set the stopOnEntry flag to true in your launch.json configuration. This will trigger a NativeScript CLI command which will build, deploy and run your app in an iOS device or emulator and attach the Visual Studio Code debugger. You can always add your own debug configuration or alter the existing ones just by editing the launch.json file.Ĭhoose one of the launch configurations (e.g., Launch on iOS) and press the Start Debugging button next to the menu. vscode folder, containing 4 default launch configurations - Launch on iOS, Attach on iOS, Launch on Android and Attach on Android. A launch.json file should be generated in your. Generate launch configurationsĬlick the debugging icon in the View bar, and then click the gear icon to choose the NativeScript debug environment. Open your application root folder, created with tns create command, in Visual Studio Code. ![]() You can see it if you run Extensions: Show Installed Extensions command from the Command Palette. ![]() To install the NativeScript extension for Visual Studio Code open the Command Palette ( F1 or Cmd+Shift+P) and run Extensions: Install Extension command, then search for 'NativeScript' and choose it from the list.Īfter the installation completes, the extension appears in the list of installed extensions. NativeScript Extension for Visual Studio Code Installation NativeScript Extension for Visual Studio Code. ![]()
0 Comments
Leave a Reply. |