-
Notifications
You must be signed in to change notification settings - Fork 282
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
Breakpoint set but not yet bound in VUE app #860
Comments
This is expected in the old debugger since Vue needs to be treated specially in some cases, and it did not.
It looks like the repo is downleveling async to ES5, which has the side effect of renaming the "error" variable.
So at the point of "catch", that variable doesn't exist. async/await is supported in all modern browsers, so I recommend changing your build to not downlevel like this. Automatically dealing with renames like this (when sourcemaps support it) can be tracked in microsoft/vscode#12066, thus closing as a duplicate of that feature request. |
Could you further clearify what do you mean for "change your build" ? It is an issue due to @auth0/auth0-spa-js module? Or I have to change node version? |
It looks like that app uses a .browserslistrc to configure what browsers/platforms it targets. Playing with that to not downlevel await can get you what you're after. Or if you actually want to target these older browsers (namely IE) you can leave it as is and look in the "Variables" view on the sidebar which will show function locations, which will include whatever the error variable was renamed to. |
I changed my .browserslistrc from:
to
But with no results.
|
I'm experiencing several issues in trying to debug a VUE app.
The VUE app is available here.
I'm using node v14.15.0 and @vue/cli 4.5.9.
The main issue is regarding "breakpoint set but not yet bound" or erratic behaviour of the debugger that in a try/catch block does not show error value (on mouseover) but has no issues using promises (more here).
To Reproduce
Open ExternalApi.vue inside src/components and place two breakpoints at line 44 and 60 (as an example).
I slightly changed this file, respect to the code at link above, in:
I suppose that it is a problem related to launch.json and/or tasks.json.
File launch.json is:
While tasks.json is:
VS Code has "ms-vscode.js-debug" set not enable and "ms-vscode.js-debug-nightly" installed and enabled.
If property "debug.javascript.usePreview= false" is set in settings.json I experience the "breakpoint set but not yet bound", while if this property is not set at all I experience a weird behaviour that in an async/await function with a try/catch block (as above in callApi2) I can't see error value on mouseover, but the breakpoint is set and the debugger jumps to the correct location.
What's wrong?
Thanks.
Log File
vscode-chrome-debug.txt
VS Code Version: 1.51.1
The text was updated successfully, but these errors were encountered: