-
Notifications
You must be signed in to change notification settings - Fork 289
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
New debugger does not attach to process #623
Comments
For auto attach: microsoft/vscode#102057 (comment)
Can you share a trace log using the instructions from the issue template? |
Two logs, one with autoattach and one without, were sent to connor@xbox.com. EDIT: Autoattach seems to be attaching to the wrong process (npm in this case) which is on a different port and address than what we specified. |
Thanks for the logs and context. It seems like you're in the same boat as #586 (comment) -- see that comment for resolution (the nightly build referenced should be available in about 2hrs). If you need to debug until then you can set |
With It stopped working again on 1.47.3. I believe this is a new issue, and the old issue is not resolved either. I tried toggle debug.javascript.usePreview to Let me know if you would like more log files. EDIT: Apologies. The debugger issue has something to do with a jest setting |
Thanks for the followup. Can you send a new trace log over? |
See attached logs.
…On Fri, Aug 7, 2020 at 8:58 AM Connor Peet ***@***.***> wrote:
Thanks for the followup. Can you send a new trace log over?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#623 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJTGZOHL7XYIZHLRE2WKVTR7QQDNANCNFSM4O24GDIA>
.
|
Just cleaned up docker & restarted vscode. This log file would probably be
cleaner than the previous.
…On Mon, Aug 10, 2020 at 2:24 PM Yu Guan ***@***.***> wrote:
See attached logs.
On Fri, Aug 7, 2020 at 8:58 AM Connor Peet ***@***.***>
wrote:
> Thanks for the followup. Can you send a new trace log over?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#623 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADJTGZOHL7XYIZHLRE2WKVTR7QQDNANCNFSM4O24GDIA>
> .
>
|
Attaching logs to mails to Github unfortunately don't come through. Please upload the log by dragging it onto the comment box on github.com, or cc me at connor@xbox.com. Thanks! |
Thanks for the emailed logs! Up a few weeks ago I linked a solution that involved changing the |
Tried both |
Ah, apologies, missing a step -- the attachSimplePort option was added in the nightly build, so you will need to be on that (or wait until the next VS Code stable release tomorrow or Thursday) |
Alright. I tried a couple of configurations and below are some findings. After switching to nightly build v2020.8.1017, and turning on preview
Will send logs for |
What's the actual command you're running in |
In
In
|
Okay. So you definitely want
How does it fail? |
When nodemon sees a change in file, it re-runs jest, then the console gets stuck at
|
js-debug doesn't support re-attaching when launching a program (without restarting the program). For your scenario I suggest moving your docker launch into a prelaunch task, and then use an "attach" config, e.g. tasks.json {
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "debug-vscode",
"problemMatcher": [],
"isBackground": true,
"label": "npm: debug-vscode",
}
]
}
launch.json {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229,
"restart": true, // re-attach on reboot
"preLaunchTask": "npm: debug-vscode", // docker run beforehand
}
]
} Or, use our remote extensions to work right in the container. |
Describe the bug
Previously we were able to launch a process and have inspector attach to 9229 port and use break points.
On node12 + VSCode 1.47.1, the same setup broke.
Debugger listening on ws://0.0.0.0:9229/hash
To Reproduce
Steps to reproduce the behavior:
Log File
I'm emailing a log file to the email address with this issue's link as reference.
VS Code Version: 1.47.1
Additional context
We do have a hierarchy of indirections before invoking nodemon which might be affecting auto-attach feature.
* In code-workspace, we have launch via npm config
* In node package, we have a script called
debug-vscode
which calls a bash script* In the bash script, we start a docker instance
* Then calls
docker-compose exec nodemon --inspect-brk=0.0.0.0 ...
The text was updated successfully, but these errors were encountered: