microsoft / microsoft/MIEngine
VS 2022 Attach to process (gdb): Docker (Linux container) works, SSH (same container process) hangs loading symbols
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 859
- Forks
- 233
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 3
Description
Hi,
I'm struggling with attaching to a process running in a linux container (Ubuntu 23.04, with openssh-server and gdb installed).
Open empty visual studio / no code.
If I try Attach to Process -> Docker (Linux Container) it works perfectly, with breakpoints etc.
If I try Attach to Process -> SSH (have configured and testet connection ubuntu@localhost port 22 is bound to port 2222 locally.)
This seems to start (I pick the process and Native (GDB) debugger and Attach), but hangs indefinetly (until i kill visual studio) on
Loading Symbols
Loading symbols for module /lib/x86_64-linux-gnu/libcrypto.so.3
I have checked that the file exists. Also, since attaching through Docker (Linux Container) works, this should be ok.
I have tried to enable logging https://github.com/microsoft/MIEngine/wiki/Logging#enabling-logging-from-visual-studio
but I didn't get any output to the console.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the SSH attach path against ubuntu@localhost on port 2222, comparing it with the working Docker attach path. Consult the MIEngine Visual Studio logging instructions and investigate the hang while loading /lib/x86_64-linux-gnu/libcrypto.so.3; done means SSH attachment completes and symbols load without Visual Studio hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, linux, ubuntu
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100