-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Issue] Unable to debug .NET 8 console application on raspberry pi 4 #90
Comments
Thank you for reporting the instance with full details, including the log output. Though this feature has been found to work in a lot of instances, but not all, your attached details will be most helpful. This is related to issue #32. On the bright side, I'm happy to hear that the remote deployment is working out for you. In the mean time, are you in a spot to be able to perform a small workaround such as performing a manual interrupt via
|
Hi, After following the steps above, I successfully hit the breakpoint I set in Visual Studio. Below is the Debug Adapter Host Log |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
After installing the VsLinuxDebug extension on Visual Studio 2022 and starting to deploy and debug, nothing happens, and attaching to the process for debugging is also not working as I don't see my application.
The Visual Studio was able to connect to the Raspberry Pi 4 and install the visual debugger, and it was also uploading the.NET application to a remote target.
Visual Studio 2022:
Microsoft Visual Studio Community 2022 (64-bit)
Version 17.9.0
Raspberry pi 4:
Release date: July 4th 2024
System: 64-bit
Kernel version: 6.6
Debian version: 12 (bookworm)
Debug Adapter Host Log
` 1> DebugAdapterHost version: 17.6.10907.1 commit:6fef36f95dd1139788bfdde4ba25a71b4ccdc1aa
1> Starting 'ssh.exe' with arguments ' [email protected] -T ~/.vs-debugger/vs2022/vsdbg --engineLogging=./VSLinuxDbg/ConsoleApp/_vsdbg.log'
1> WARNING: 'Language' not specified in engine registration!
1> WARNING: 'LanguageId' not specified in engine registration!
1> [DebugAdapter] --> C (initialize-1): {"type":"request","command":"initialize","arguments":{"pathFormat":"path","clientID":"visualstudio","clientName":"Visual Studio","adapterID":"coreclr","locale":"en-US","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsRunInTerminalRequest":true,"supportsMemoryReferences":true,"supportsProgressReporting":true,"SupportsMessageBox":true,"supportsHandshakeRequest":true,"supportsVsAdditionalBreakpointBinds":true,"supportsHitCountsChange":true,"supportsVsCustomMessages":true,"supportsVariableEnumerators":true},"seq":1}
1> ERROR: Debug Adapter did not respond to initial requests.
1> ERROR: Unexpected error
AggregateException: One or more errors occurred.
Aggregate exception:
DebugAdapterLaunchException: Failed to launch debug adapter. Additional information may be available in the output window.
Inner Exception:
DebugAdapterLaunchException: Failed to launch debug adapter. Additional information may be available in the output window.
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Engine.Implementation.DebuggedProcess.b__123_3(Exception ex)
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.<>c__DisplayClass11_0
1.<Catch>b__0(TException ex) Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.<>c__DisplayClass10_0
1.b__0(AggregateException ex)1> ERROR: One or more errors occurred.
Failed to launch debug adapter. Additional information may be available in the output window.
The operation was canceled.
1> Debug adapter process exited.
1> WARNING: Request 'initialize-1' has not received a response within 1000 ms!
`
Linux Debugger:
18:50:53.038: InitializeAsync 18:50:53.257: Project [success=True]: ConsoleApp\ConsoleApp.csproj 18:50:53.295: Build was successful 18:50:53.319: SSH connecting... 18:50:54.228: Connected to [email protected]:22 via SSH and SFTP 18:50:54.262: BASH> uname -m 18:50:54.308: BASH> which curl ; echo $? 18:50:54.320: BASH> [ -d ~/.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger/vs2022 18:50:54.330: Returned: 18:50:54.333: BASH> mkdir -p ./VSLinuxDbg 18:50:54.344: BASH> sudo chown -R sa ./VSLinuxDbg 18:50:54.370: BASH> rm -rf ./VSLinuxDbg/ConsoleApp/{*,.*} 18:50:54.385: BASH> mkdir -p ./VSLinuxDbg/ConsoleApp 18:50:54.397: Destination Tar.GZ: './VSLinuxDbg/ConsoleApp/vsldBuildContents.tar.gz' 18:50:54.401: Getting bin files for transfer... 18:50:54.408: Compressing files for transfer... 18:50:54.495: Update file count: 5; File Size: [158742 bytes] of Total Files: 5 [158742 bytes] need to be updated 18:50:54.495: Uploading... 18:50:54.546: Uploaded 'vsldBuildContents.tar.gz' [ 72,239 bytes]. 18:50:54.548: BASH> set -e;cd "./VSLinuxDbg/ConsoleApp";tar -zxf "vsldBuildContents.tar.gz" 18:50:54.565: Payload Decompress results: '' (blank=OK) 18:50:54.565: Upload completed successfully. 18:50:54.578: Debugger launching... 18:50:54.578: - launch.json path: 'C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json' 18:50:54.578: - DebugAdapterHost.Launch /LaunchJson:"C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json" 18:50:55.780: Debug session complete. 18:52:28.050: Project [success=True]: ConsoleApp\ConsoleApp.csproj 18:52:28.056: Build was successful 18:52:28.138: SSH connecting... 18:52:29.005: Connected to [email protected]:22 via SSH and SFTP 18:52:29.010: BASH> uname -m 18:52:29.038: BASH> which curl ; echo $? 18:52:29.052: BASH> [ -d ~/.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger/vs2022 18:52:29.066: Returned: 18:52:29.068: BASH> mkdir -p ./VSLinuxDbg 18:52:29.082: BASH> sudo chown -R sa ./VSLinuxDbg 18:52:29.115: BASH> rm -rf ./VSLinuxDbg/ConsoleApp/{*,.*} 18:52:29.129: BASH> mkdir -p ./VSLinuxDbg/ConsoleApp 18:52:29.141: Destination Tar.GZ: './VSLinuxDbg/ConsoleApp/vsldBuildContents.tar.gz' 18:52:29.141: Getting bin files for transfer... 18:52:29.142: Compressing files for transfer... 18:52:29.170: Update file count: 5; File Size: [158742 bytes] of Total Files: 5 [158742 bytes] need to be updated 18:52:29.170: Uploading... 18:52:29.218: Uploaded 'vsldBuildContents.tar.gz' [ 72,239 bytes]. 18:52:29.219: BASH> set -e;cd "./VSLinuxDbg/ConsoleApp";tar -zxf "vsldBuildContents.tar.gz" 18:52:29.243: Payload Decompress results: '' (blank=OK) 18:52:29.248: Upload completed successfully. 18:52:29.264: Debugger launching... 18:52:29.264: - launch.json path: 'C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json' 18:52:29.264: - DebugAdapterHost.Launch /LaunchJson:"C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json" 18:52:29.400: Debug session complete. 18:52:38.524: Project [success=True]: ConsoleApp\ConsoleApp.csproj 18:52:38.535: Build was successful 18:52:38.647: SSH connecting... 18:52:39.374: Connected to [email protected]:22 via SSH and SFTP 18:52:39.384: BASH> uname -m 18:52:39.404: BASH> which curl ; echo $? 18:52:39.422: BASH> [ -d ~/.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger/vs2022 18:52:39.439: Returned: 18:52:39.452: BASH> mkdir -p ./VSLinuxDbg 18:52:39.474: BASH> sudo chown -R sa ./VSLinuxDbg 18:52:39.512: BASH> rm -rf ./VSLinuxDbg/ConsoleApp/{*,.*} 18:52:39.550: BASH> mkdir -p ./VSLinuxDbg/ConsoleApp 18:52:39.574: Destination Tar.GZ: './VSLinuxDbg/ConsoleApp/vsldBuildContents.tar.gz' 18:52:39.574: Getting bin files for transfer... 18:52:39.576: Compressing files for transfer... 18:52:39.622: Update file count: 5; File Size: [158742 bytes] of Total Files: 5 [158742 bytes] need to be updated 18:52:39.622: Uploading... 18:52:39.684: Uploaded 'vsldBuildContents.tar.gz' [ 72,239 bytes]. 18:52:39.685: BASH> set -e;cd "./VSLinuxDbg/ConsoleApp";tar -zxf "vsldBuildContents.tar.gz" 18:52:39.703: Payload Decompress results: '' (blank=OK) 18:52:39.703: Upload completed successfully. 18:54:38.642: Project [success=True]: ConsoleApp\ConsoleApp.csproj 18:54:38.670: Build was successful 18:54:38.700: SSH connecting... 18:54:39.562: Connected to [email protected]:22 via SSH and SFTP 18:54:39.566: BASH> uname -m 18:54:39.594: BASH> which curl ; echo $? 18:54:39.614: BASH> [ -d ~/.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger/vs2022 18:54:39.627: Returned: 18:54:39.627: BASH> mkdir -p ./VSLinuxDbg 18:54:39.646: BASH> sudo chown -R sa ./VSLinuxDbg 18:54:39.676: BASH> rm -rf ./VSLinuxDbg/ConsoleApp/{*,.*} 18:54:39.689: BASH> mkdir -p ./VSLinuxDbg/ConsoleApp 18:54:39.701: Destination Tar.GZ: './VSLinuxDbg/ConsoleApp/vsldBuildContents.tar.gz' 18:54:39.701: Getting bin files for transfer... 18:54:39.702: Compressing files for transfer... 18:54:39.731: Update file count: 5; File Size: [158774 bytes] of Total Files: 5 [158774 bytes] need to be updated 18:54:39.731: Uploading... 18:54:39.777: Uploaded 'vsldBuildContents.tar.gz' [ 72,306 bytes]. 18:54:39.777: BASH> set -e;cd "./VSLinuxDbg/ConsoleApp";tar -zxf "vsldBuildContents.tar.gz" 18:54:39.796: Payload Decompress results: '' (blank=OK) 18:54:39.796: Upload completed successfully. 18:54:39.803: Debugger launching... 18:54:39.805: - launch.json path: 'C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json' 18:54:39.805: - DebugAdapterHost.Launch /LaunchJson:"C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json" 18:54:39.924: Debug session complete. 19:39:29.114: Project [success=True]: ConsoleApp\ConsoleApp.csproj 19:39:29.121: Build was successful 19:39:29.264: SSH connecting... 19:39:30.126: Connected to [email protected]:22 via SSH and SFTP 19:39:30.139: BASH> uname -m 19:39:30.182: BASH> which curl ; echo $? 19:39:30.201: BASH> [ -d ~/.vs-debugger/vs2022 ] || curl -ksSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/.vs-debugger/vs2022 19:39:30.214: Returned: 19:39:30.214: BASH> mkdir -p ./VSLinuxDbg 19:39:30.227: BASH> sudo chown -R sa ./VSLinuxDbg 19:39:30.253: BASH> rm -rf ./VSLinuxDbg/ConsoleApp/{*,.*} 19:39:30.266: BASH> mkdir -p ./VSLinuxDbg/ConsoleApp 19:39:30.278: Destination Tar.GZ: './VSLinuxDbg/ConsoleApp/vsldBuildContents.tar.gz' 19:39:30.278: Getting bin files for transfer... 19:39:30.279: Compressing files for transfer... 19:39:30.307: Update file count: 5; File Size: [158774 bytes] of Total Files: 5 [158774 bytes] need to be updated 19:39:30.307: Uploading... 19:39:30.362: Uploaded 'vsldBuildContents.tar.gz' [ 72,306 bytes]. 19:39:30.362: BASH> set -e;cd "./VSLinuxDbg/ConsoleApp";tar -zxf "vsldBuildContents.tar.gz" 19:39:30.386: Payload Decompress results: '' (blank=OK) 19:39:30.386: Upload completed successfully. 19:39:30.405: Debugger launching... 19:39:30.406: - launch.json path: 'C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json' 19:39:30.406: - DebugAdapterHost.Launch /LaunchJson:"C:\Users\smetronic\source\repos\ConsoleApp\ConsoleApp\bin\Debug\net8.0\launch.json" 19:39:30.587: Debug session complete.
The text was updated successfully, but these errors were encountered: