-
Notifications
You must be signed in to change notification settings - Fork 510
An error occurs when I try to attach to a Host Process #1322
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
Comments
I can repro this. I'll take a look at it tonight. |
Same for me |
I think I have a fix for this but what's weird is that I'm only seeing this in the VSCode Insiders build. Would you mind performing a quick hack to see if my proposed fix fixes the issue for stable VSCode release? If so, open up the file return item ? item.pid : ""; to this: return item ? `${item.pid}` : ""; Let me know if that fixes the issue you are seeing (or not). |
@rkeithhill, that did the trick. Thanks a ton! |
Excellent! Thanks for trying that out. |
@isidorn @weinand Turns out we have a similar issue with the process picker for our debugger's "attach to PS host process". I have fixed it to return a string rather than a number but I'm not sure what to return when the press Esc to cancel the debug session. If I return Actually, perhaps it is this line that is what we should mimic: What do you recommend that we return for this case? |
@rkeithhill sorry I was on vacation for the previous 10 days, do you still need suggestions here? |
I went with returning |
@rkeithhill that is not problemtic and something that the dart debugger already does afaik |
@isidorn Thanks! |
Issue Type: Bug
Hi!
I'm having issues with using the default 'PowerShell Attach to Host Process' configuration in order to debug a PS script that I have running in a separate PowerShell console window.
When I run the debug configuration, I get presented with a list of processes to attach to and when I'm selecting the one I need, I get the following error message:
'${command:PickPSHostProcess}' can not be resolved because the command has no value.
Am I doing something wrong? Is there anything else that I need to add to my configuration?
Please let me know if you need the logs, as I can reproduce it in a new VSCode session with a simple HelloWorld script.
Extension version: 1.7.0
VS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.16299
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: