Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints jump to a different line #76

Open
jochem725 opened this issue Aug 15, 2018 · 1 comment
Open

Breakpoints jump to a different line #76

jochem725 opened this issue Aug 15, 2018 · 1 comment

Comments

@jochem725
Copy link

I’ve set up react-native-typescript-transformer using the guide described on the website of React Native both using an existing react-native project with version 0.55.1 and a clean project with version 0.56.0.

In both versions, if I use this in combination with VSCode and Chrome setting a breakpoint on a line makes it jump to a different line. Could this be an issue with the generated source maps?

@jochem725
Copy link
Author

I’ve created a sample project [here] based on the typescript article on the RN blog (https://github.com/jochem725/ts-breakpoints). The steps to reproduce (on iOS) are

  • Launch App using XCode
  • Enable remote debugging
  • Attach debugger in VSCode
  • Set breakpoint (i.e. on Hello.tsx line 67)

If you do this, you will see the breakpoint jump to a different line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant