Skip to content

Instantly share code, notes, and snippets.

View dphilipson's full-sized avatar

David Philipson dphilipson

View GitHub Profile
@frogcjn
frogcjn / make_VSCode_debug_RN_TS.md
Last active November 17, 2020 11:03
How to make VScode debug Typescript file with ReactNative

If using Typescript to write a ReactNative Project in VSCode, you'll find that VSCode cannot stop at any breakpoint in TypeScript files. You must create breakpoints in JS files.

This post will answer why this problem appears and how to solve that.

Enviroment: VSCode (1.1.1 or 1.2.0) and ReactNative Tool Extension (0.1.4)

Solution Target: Debugger will work on break points in TypeScript files, in a ReactNative Project

Example Project structure: