GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing docs.nativescript.org — Debugging | NativeScript NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration Dig in→
Are you an LLM? You can read better optimized documentation at /guide/debugging.md for this page in Markdown format There are multiple ways to debug issues in your apps, starting with the simplest form using Console The quickest way to inspect state is to log values to the console. NativeScript supports console methods like The ts Additional Resources: Debugging with Chrome DevTools To start a Chrome debugging session, run your app in debug mode: bash The Once the app starts, a URL is printed to the console bash Visit the printed URL (devtools://devtools/bundled/inspector.html?ws=localhost:41000) in Google Chrome to attach to the debugger session. You can customize the
If you are new to JavaScript debugging, we recommend reading the following resources from Chrome Developers to get familiar with the basics: Supported Chrome DevTools features
Debugging with VS Code VS Code uses the same protocol as the Chrome DevTools, in order to start a debugging session in VS Code you need to install the NativeScript extension for VS Code. Note The VS Code extension for NativeScript is currently outdated and may not work. We are planning on revamping the project and bring it up-to-date with all the latest features soon. Debugging with XCode If you need to debug parts of the native stack instead of the JavaScript part of your app, you can use the XCode debugger as well as all the XCode Instruments to find issues in your app such as memory leaks, hangs, CPU heavy tasks and more. To start, prepare the iOS app: bash This compiles your app source, creates the Next, open the bash Select a target device or simulator, and then run the app via the "Play" button. Navigate to the native code in the XCode project, and place breakpoints, when the app hits those it will pause execution and you will be able to step through the native code. If a crash occurs, the XCode debugger will stop the execution and print a thread dump and a location where the app is crashing. In many cases the stack will point to symbol identifiers like Since NativeScript utilises a standard XCode project structure, you can do everything you would typically do with a pure iOS application:
Additional Resources:
Debugging with Android Studio If you need to debug parts of the native stack instead of the JavaScript part of your app, you can use Android Studio to find issues in your app. To start, prepare the Android app: bash This compiles your app source, creates the Next, open the Tip If you set up the bash Since NativeScript follows a standard gradle/android application structure, you can do everything you would typically do with a pure Android application:
Additional Resources:
| |||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |