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

Incorrect line number when debugging in browser #196

Closed
virtualsurfer opened this issue Nov 16, 2015 · 3 comments
Closed

Incorrect line number when debugging in browser #196

virtualsurfer opened this issue Nov 16, 2015 · 3 comments
Labels

Comments

@virtualsurfer
Copy link

Hi, we found an issue when debugging javascript inside jsx, with chrome, firefox or IE.
Dev tools seems to be showing different execution line numbers, and doesn't match with expected line numbers.

Next image shows that first breakpoint hit after call "_onSubmitClick" is an empty line.

image

This behavior changes between jsx files and browsers.
We are using VS2013 ASP.NET MVC 4 with reactjs.net nuget package.

By the way, Great job!
We are evaluating product in order to use it in production environment.

Thanks in advance

@Daniel15
Copy link
Member

Interesting, sounds like the source map is incorrect. For now you can disable source maps in the Chrome dev tools settings - The code won't be as pretty (as it'll show you the code after transformation rather than your original code) but should still be sufficient for debugging.

@Daniel15 Daniel15 added the Bug label Nov 17, 2015
@virtualsurfer
Copy link
Author

Disabling source maps works just fine.
Thanks

@Daniel15
Copy link
Member

This should be fixed in version 2.1.2, let me know if you still experience any issues!

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

No branches or pull requests

2 participants