-
Notifications
You must be signed in to change notification settings - Fork 269
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
[Bug] Unbound Breakpoint #1456
Comments
Hi @leobragatti and thanks for reaching us. Could you please add more information about your project?
Also it will be great if you can provide a minimal demo application in which this issue is reproduced. |
Hi @SounD120, thanks for the reply! Which version of React Native is used in your application? Can you please provide screenshots of breakpoints marked as unbound? My current app now is complex, but I'll try to do a minimal app to reproduce this |
@leobragatti Does this issue reproduce on React Native Tools v1.1.0? You can install it by using right click on the extension and selecting |
@SounD120 yes, the problem persists on React Native Tools v1.1.0 |
@leobragatti Could you please execute your debugging scenario with |
@SounD120 Here's the output |
@leobragatti I inspected the logs and I don't even see any logs connected to the Here is the exact error that I found:
|
@SounD120 I'll check it out and let you know. Thanks for the help! |
@SounD120 Just to let you know, I tried to debug using WebStorm IDE and worked fine |
@leobragatti Which version of VS Code do you use? |
@leobragatti Basically this looks like a sourcemap problem. |
@leobragatti Can you please also share your debug scenario configuration from |
@SounD120 Here's the {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Android",
"cwd": "${workspaceFolder}",
"type": "reactnative",
"request": "launch",
"platform": "android",
"trace": "verbose"
},
{
"name": "Debug iOS",
"cwd": "${workspaceFolder}",
"type": "reactnative",
"request": "launch",
"platform": "ios"
}
]
} |
@leobragatti I think I found the reason of problems with breakpoints. For some reason the path to the source file look incorrectly, for example for
This path is constructed relatively from |
@leobragatti Could you please try to replace |
@SounD120 By that, you mean just rename the folder? |
@leobragatti Yes, and after that try to debug your app. |
@SounD120 still not working :( Any more suggestions? |
@leobragatti This problem will be faster to find with a repro demo, so could you please send us one? This will be very helpful, since this doesn't reproduce on basic template apps. |
@SounD120 I've invited you to a repo to be able to reproduce the problem. I've noticed one thing: When I have |
@leobragatti We have tested both versions of folder names with |
@SounD120 I've placed the breakpoint in the same line as you: |
Hi @leobragatti. It seems that something goes wrong when the extension tries to transform your absolute paths to source file to relative for sourcemaps. In order to check this I prepared patched version of the extension which will write debug logs from this place in file. So could you please do the following:
Please take into account that this compiled VSIX version is for debugging purposes only, so after the test it is recommended to remove it, relaunch VS Code and install the extension from the Marketplace. |
@SounD120 I've found the problem. I was using a symbolic link to the repo. When I started using the real path to the folder, the debugger worked. Really weird situation, though, because I have a lot of folders which are just symbolic links and don't have any problem with that |
@leobragatti Really weird situation 😕 . I think we'll investigate the extension behavior with respect to the symbolic links and update the documentation to avoid such issues in future. |
@SounD120 thanks so much for the help and attention! |
🐛 What is the bug? How can we reproduce it?
I'm just trying to debug my app, but all breakpoints show the message "Unbound breakpoint"
I've already tried all the solutions I've saw on the internet, but still I have this problems
Expected behavior
When I start the debugger, it should stop on the breakpoints
Debug output
Debug Console
React Native output channel
Developer Tools console
Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
:The text was updated successfully, but these errors were encountered: