-
Notifications
You must be signed in to change notification settings - Fork 144
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
Issues with launching debug #384
Comments
Thanks for moving this @kitsonk |
The debug error is about as useless to me too. |
Tried this with canary and it seems to work: > deno --version
deno 1.9.2+688557e (canary, x86_64-pc-windows-msvc)
v8 9.1.269.5
typescript 4.2.2 [edit] and it's stopped working again with same error after updating to the next canary version. > deno --version
deno 1.9.2+d806dc0 (canary, x86_64-pc-windows-msvc)
v8 9.1.269.5
typescript 4.2.2``` |
The error persists in the latest versions: > deno --version
deno 1.10.1 (release, x86_64-pc-windows-msvc)
v8 9.1.269.27
typescript 4.2.2
> code --version
1.56.0
cfa2e218100323074ac1948c885448fdf4de2a7f
x64 And the plugin version is 3.4. Setting {
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"deno.internalDebug": true
} This is rather annoying, any pointers on how to go debugging this? I don't have much experience with VSCode so I'm at a loss here. |
I can confirm My observation was that |
Glad others are having same problem as me, as per my issue |
I am having this same issue, I have to use --inspect-brk to get debugging to work at all, and then with this flag, I get the error message Could not connect to debug target mentioned. This is however intermittent for me, it generally occurs on the first run after making a source code change. The last line in the Terminal is: This strongly suggests a race condition where the debugger tries to connect to the debug target before it has come up. This is an everyday annoyance for me and probably many or most Deno users on VS code, it gives the impression that Deno is a beta product, and it has not been fixed in many updates. I'd suggest prioritising this. |
Confirming it's also failing to attach on Windows 10 with
Using |
Just confirming its also happening to me on OS X, VS Code 1.59.1, Deno for VSC 3.8.1 and Deno 1.13.2. Changing And a quick fix to make life more pleasant for us noobs would be to update the auto generated launch file in the Deno VS Code plugin as it creates the initial "Deno: Run" config with the --inspect flag. (Precise error, in case someone is searching is:)
|
There are several different issues occurring here. We didn't have a very intelligent "default" debug configuration, nor did the code that created a We changed the default from For now I am going to close this issue, and once #513 is released, if there are still issues, I would encourage people to open a new issue so it can be investigated, as this issue has several root causes going on. |
@kitsonk Certainly; no problem.
It is still not working for me. I am still experiencing the same result as in my previous comment: #12 (comment)
Here is some additional information:
When I have no
.vscode/launch.json
config and simply press F5 (run the debugger), I am presented with a list of choices. I choose the one named "Deno: Run". After waiting several seconds, I receive this error dialog:If I then create a custom launch config file, I can get further in the debug process, but only to the point described in my previous comment.
For comparison, here are multiple debug configs, commented to explain their sources:
I ran this test again today on WSL, but haven't tested again on macOS yet.
Here is a zip file containing the workspace folder used when I did this test before posting this comment:
debug-example.zip
Env:
Originally posted by @jsejcksn in #12 (comment)
The text was updated successfully, but these errors were encountered: