[Issue] Unable to debug .NET 8 console application on raspberry pi 4
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.
Failure Location: UserCanceled
Inner Exception:
OperationCanceledException: The operation was canceled.
Inner Exception: DebugAdapterLaunchException: Failed to launch debug adapter. Additional information may be available in the output window.
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Engine.Implementation.DebuggedProcess.<StartDebugAdapter>b__123_3(Exception ex)
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.<>c__DisplayClass11_01.<Catch>b__0(TException ex) Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.<>c__DisplayClass10_01.<Catch>b__0(AggregateException ex)
Failure Location: UserCanceled
Inner Exception:
OperationCanceledException: The operation was canceled.
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.
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 Console.ReadLine();?
- Deploy to remote machine via
- Extensions > Linux Debugger > "Build and Deploy"
- Run your CLI app on remote machine
-
dotnet MyCliApp.dll
-
- Debug > "Attach to Process.."
- Connection Type: SSH
- Connection Target: (Remote machine's IP)
- (Select process)
- Click, Attach
- Check, "Managed (.NET Core for Unix)"
- Click, OK
- Continue your application, if using a manual interrupt (i.e.
Console.ReadLine();)
Hi, After following the steps above, I successfully hit the breakpoint I set in Visual Studio. The extension is useful, but it would be even better if it included a remote terminal and the ability to debug the app after deployment.
Below is the Debug Adapter Host Log
1> DebugAdapterHost version: 17.6.10907.1 commit:6fef36f95dd1139788bfdde4ba25a71b4ccdc1aa 1> Determining user folder on remote system... 1> Checking for existing installation of debugging tools... 1> Executing command '[ -f "/home/sa/.vs-debugger/GetVsDbg.sh" ]' with arguments '' 1> Command exited with code '0' 1> Executing command '[ -f "/home/sa/.vs-debugger/GetVsDbg.sh" ]' with arguments '' 1> Command exited with code '0' 1> Launching remote debugger... 1> Starting '/bin/sh' with arguments '"/home/sa/.vs-debugger/GetVsDbg.sh" -v vs2022 -u -l "/home/sa/.vs-debugger/vs2022" -d vscode -a "/remote_debugger"' 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> Debug adapter non-protocol standard output: Info: Last installed version of vsdbg is '17.12.10904.2' Info: VsDbg is up-to-date Info: Using vsdbg version '17.12.10904.2' Using arguments Version : 'vs2022' Location : '/home/sa/.vs-debugger/vs2022' SkipDownloads : 'true' LaunchVsDbgAfter : 'true' VsDbgMode : 'vscode' RemoveExistingOnUpgrade : 'true' Info: Skipping downloads Info: Launching vsdbg 1> [DebugAdapter] <-- R (initialize-1) [378 ms]: {"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"exceptionBreakpointFilters":[{"filter":"all","label":"All Exceptions","description":"Break when an exception is thrown. ","default":false,"supportsCondition":true},{"filter":"user-unhandled","label":"User-Unhandled Exceptions","description":"Break when an exception is caught in non-user code (system code) after having passed through user code. ","default":true,"supportsCondition":true}],"supportsSetVariable":true,"supportsGotoTargetsRequest":true,"supportsModulesRequest":true,"additionalModuleColumns":[{"attributeName":"vsLoadAddress","label":"Load Address","type":"string"},{"attributeName":"vsPreferredLoadAddress","label":"Preferred Load Address","type":"string"},{"attributeName":"vsModuleSize","label":"Module Size","type":"number"},{"attributeName":"vsLoadOrder","label":"Order","type":"number"},{"attributeName":"vsTimestampUTC","label":"Timestamp","type":"unixTimestampUTC"},{"attributeName":"vsIs64Bit","label":"64-bit","type":"boolean"},{"attributeName":"vsAppDomain","label":"AppDomain","type":"string"},{"attributeName":"vsAppDomainId","label":"AppDomainId","type":"number"}],"supportedChecksumAlgorithms":["MD5","SHA1","SHA256"],"supportsExceptionOptions":true,"supportsValueFormattingOptions":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":true,"supportsLogPoints":false,"supportsSetExpression":true,"supportsReadMemoryRequest":true,"supportsCancelRequest":true,"supportsClipboardContext":true,"supportsExceptionFilterOptions":true,"supportsAttachCompleteEvent":true,"supportsExceptionConditions":true,"supportsLoadSymbolsRequest":true,"supportsModuleSymbolSearchLog":true,"supportsDebuggerProperties":true,"supportsSetSymbolOptions":true,"supportsAuthenticatedSymbolServers":true,"supportsHitBreakpointIds":true,"supportsVsIndividualBreakpointOperations":true,"supportsVsBreakpointLanguage":true,"supportsSetHitCount":true,"supportsVsCustomMessages":true,"supportsEvaluationOptions":true,"supportsExceptionStackTrace":true,"memoryReferencesAreAddresses":true,"supportsObjectFavorites":true,"supportsObjectId":true,"supportsVariableEnumerators":true},"seq":1} 1> [DebugAdapter] --> C (attach-2): {"type":"request","command":"attach","arguments":{"name":".NET Core Attach","type":"coreclr","request":"attach","processId":"2111"},"seq":2} 1> [DebugAdapter] <-- C (handshake-2): {"type":"request","command":"handshake","arguments":{"value":"AzFdOq1yOJtpTahkoGJ8ignW6myeNzy8TulnY8mIAxs="},"seq":2} 1> [DebugAdapter] --> R (handshake-2): {"type":"response","request_seq":2,"success":true,"command":"handshake","body":{"signature":"901MYKTUiRZis3fW+LQgx0ZsWSyWITzvCU+XeLqXpucRAU="},"seq":3} 1> [DebugAdapter] <-- E (output): {"type":"event","event":"output","body":{"category":"console","output":"------------------------------------------------------------------------------\nYou may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with\nVisual Studio Code, Visual Studio or Visual Studio for Mac software to help you\ndevelop and test your applications.\n------------------------------------------------------------------------------\n","severity":"ok"},"seq":3} 1> [DebugAdapter] <-- R (attach-2) [56 ms]: {"type":"response","request_seq":2,"success":true,"command":"attach","seq":4} 1> [DebugAdapter] <-- E (initialized): {"type":"event","event":"initialized","body":{},"seq":5} 1> [DebugAdapter] --> C (setDebuggerProperty-4): {"type":"request","command":"setDebuggerProperty","arguments":{"AllowOutOfProcessSymbols":1},"seq":4} 1> [DebugAdapter] --> C (setDebuggerProperty-5): {"type":"request","command":"setDebuggerProperty","arguments":{"DisableJITOptimization":0},"seq":5} 1> [DebugAdapter] --> C (setDebuggerProperty-6): {"type":"request","command":"setDebuggerProperty","arguments":{"EnableAutomaticDecompilation":1},"seq":6} 1> [DebugAdapter] --> C (setDebuggerProperty-7): {"type":"request","command":"setDebuggerProperty","arguments":{"EnableAutomaticDeoptimization":1},"seq":7} 1> [DebugAdapter] --> C (setDebuggerProperty-8): {"type":"request","command":"setDebuggerProperty","arguments":{"EnableFastEvaluate":1},"seq":8} 1> [DebugAdapter] --> C (setDebuggerProperty-9): {"type":"request","command":"setDebuggerProperty","arguments":{"InterpreterOptions":1},"seq":9} 1> [DebugAdapter] --> C (setDebuggerProperty-10): {"type":"request","command":"setDebuggerProperty","arguments":{"JustMyCodeStepping":1},"seq":10} 1> [DebugAdapter] --> C (setDebuggerProperty-11): {"type":"request","command":"setDebuggerProperty","arguments":{"Native.LoadExports":0},"seq":11} 1> [DebugAdapter] --> C (setDebuggerProperty-12): {"type":"request","command":"setDebuggerProperty","arguments":{"NatvisComplexityLimit":100},"seq":12} 1> [DebugAdapter] --> C (setDebuggerProperty-13): {"type":"request","command":"setDebuggerProperty","arguments":{"NatvisRecursionLimit":100},"seq":13} 1> [DebugAdapter] --> C (setDebuggerProperty-14): {"type":"request","command":"setDebuggerProperty","arguments":{"StopOnExceptionCrossingManagedBoundary":0},"seq":14} 1> [DebugAdapter] --> C (setDebuggerProperty-15): {"type":"request","command":"setDebuggerProperty","arguments":{"WarnIfNoUserCodeOnLaunch":1},"seq":15} 1> [DebugAdapter] --> C (setDebuggerProperty-16): {"type":"request","command":"setDebuggerProperty","arguments":{"EnableStepFiltering":true},"seq":16} 1> [DebugAdapter] --> C (setSymbolOptions-17): {"type":"request","command":"setSymbolOptions","arguments":{"symbolOptions":{"moduleFilter":{"mode":"loadAllButExcluded","excludedModules":[""]}}},"seq":17} 1> [DebugAdapter] <-- R (setDebuggerProperty-4) [47 ms]: {"type":"response","request_seq":4,"success":true,"command":"setDebuggerProperty","body":{},"seq":6} 1> [DebugAdapter] --> C (setFunctionBreakpoints-18): {"type":"request","command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"seq":18} 1> [DebugAdapter] <-- R (setDebuggerProperty-5) [38 ms]: {"type":"response","request_seq":5,"success":true,"command":"setDebuggerProperty","body":{},"seq":7} 1> [DebugAdapter] <-- R (setDebuggerProperty-6) [38 ms]: {"type":"response","request_seq":6,"success":true,"command":"setDebuggerProperty","body":{},"seq":8} 1> [DebugAdapter] <-- R (setDebuggerProperty-7) [38 ms]: {"type":"response","request_seq":7,"success":true,"command":"setDebuggerProperty","body":{},"seq":9} 1> [DebugAdapter] <-- R (setDebuggerProperty-8) [37 ms]: {"type":"response","request_seq":8,"success":true,"command":"setDebuggerProperty","body":{},"seq":10} 1> [DebugAdapter] --> C (setBreakpoints-19): {"type":"request","command":"setBreakpoints","arguments":{"source":{"path":"c:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs","sources":[],"checksums":[{"algorithm":"MD5","checksum":"ac0ac4a60829d46525cbe5bdf662d507"},{"algorithm":"MD5","checksum":"3ce9a1e71f5050e3f85e5a0f07baa78f"},{"algorithm":"SHA1","checksum":"45e133957424485373666f68e4902e61ef06f49a"},{"algorithm":"SHA1","checksum":"0b45773ad6a2328c8c50ee34b506dc45fe61d03e"},{"algorithm":"SHA256","checksum":"bbec03fd5e18f9d23abdb526cef6174c94c22b88a95493591ca2696d9317092e"},{"algorithm":"SHA256","checksum":"dccaf970ea0fe89bce302130b24bfa1e3141151ce17ef647eba479d9dc4da8ef"}]},"breakpoints":[{"line":6,"column":1,"vsLanguageId":"{3f5162f8-07c6-11d3-9053-00c04fa302a1}"},{"line":9,"column":5,"vsLanguageId":"{3f5162f8-07c6-11d3-9053-00c04fa302a1}"}],"lines":[6,9]},"seq":19} 1> [DebugAdapter] <-- R (setDebuggerProperty-9) [69 ms]: {"type":"response","request_seq":9,"success":true,"command":"setDebuggerProperty","body":{},"seq":11} 1> [DebugAdapter] <-- R (setDebuggerProperty-10) [68 ms]: {"type":"response","request_seq":10,"success":true,"command":"setDebuggerProperty","body":{},"seq":12} 1> [DebugAdapter] <-- R (setDebuggerProperty-11) [68 ms]: {"type":"response","request_seq":11,"success":true,"command":"setDebuggerProperty","body":{},"seq":13} 1> [DebugAdapter] <-- R (setDebuggerProperty-12) [68 ms]: {"type":"response","request_seq":12,"success":true,"command":"setDebuggerProperty","body":{},"seq":14} 1> [DebugAdapter] <-- R (setDebuggerProperty-13) [68 ms]: {"type":"response","request_seq":13,"success":true,"command":"setDebuggerProperty","body":{},"seq":15} 1> [DebugAdapter] <-- R (setDebuggerProperty-14) [68 ms]: {"type":"response","request_seq":14,"success":true,"command":"setDebuggerProperty","body":{},"seq":16} 1> [DebugAdapter] <-- R (setDebuggerProperty-15) [68 ms]: {"type":"response","request_seq":15,"success":true,"command":"setDebuggerProperty","body":{},"seq":17} 1> [DebugAdapter] <-- R (setDebuggerProperty-16) [68 ms]: {"type":"response","request_seq":16,"success":true,"command":"setDebuggerProperty","body":{},"seq":18} 1> [DebugAdapter] <-- R (setSymbolOptions-17) [68 ms]: {"type":"response","request_seq":17,"success":true,"command":"setSymbolOptions","seq":19} 1> [DebugAdapter] <-- R (setFunctionBreakpoints-18) [31 ms]: {"type":"response","request_seq":18,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":20} 1> [DebugAdapter] <-- R (setBreakpoints-19) [28 ms]: {"type":"response","request_seq":19,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts."},{"id":2,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts."}]},"seq":21} 1> [DebugAdapter] --> C (setExceptionBreakpoints-20): {"type":"request","command":"setExceptionBreakpoints","arguments":{"filters":[],"exceptionOptions":[{"breakMode":"userUnhandled","path":[{"names":["CLR"]}]},{"breakMode":"unhandled","path":[{"names":["CLR"]},{"names":["System.AppDomainUnloadedException","System.Threading.ThreadAbortException"]}]},{"breakMode":"always","path":[{"names":["CLR"]},{"names":["System.Windows.Markup.XamlParseException","System.Reflection.MissingMetadataException","System.Reflection.MissingRuntimeArtifactException","System.NullReferenceException","Microsoft.UI.Xaml.Markup.XamlParseException"]}]},{"breakMode":"unhandled","path":[{"names":["MDA"]}]},{"breakMode":"always","path":[{"names":["MDA"]},{"names":["CallbackOnCollectedDelegate","ContextSwitchDeadlock","DateTimeInvalidLocalFormat","DisconnectedContext","FatalExecutionEngineError","InvalidFunctionPointerInDelegate","InvalidMemberDeclaration","InvalidVariant","LoaderLock","NonComVisibleBaseClass","PInvokeStackImbalance","RaceOnRCWCleanup","Reentrancy"]}]}]},"seq":20} 1> [DebugAdapter] <-- R (setExceptionBreakpoints-20) [16 ms]: {"type":"response","request_seq":20,"success":true,"command":"setExceptionBreakpoints","seq":22} 1> [DebugAdapter] --> C (configurationDone-21): {"type":"request","command":"configurationDone","arguments":{},"seq":21} 1> [DebugAdapter] <-- E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"12","VS.Diagnostics.Debugger.vsdbg.TargetArchitecture":"ARM64","VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"debian","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10904.2 commit:627030286402bd1121f458ef6ce78b9c67eacfef"}},"seq":23} 1> [DebugAdapter] <-- E (telemetryDetails): {"type":"event","event":"telemetryDetails","body":{"telemetryEventName":"vs/diagnostics/debugger/process/context","telemetryProperties":{"VS.Diagnostics.Debugger.AD7Process.Architecture":"ARM64"}},"seq":24} 1> [DebugAdapter] <-- E (process): {"type":"event","event":"process","body":{"name":"/opt/dotnet/dotnet","systemProcessId":2111,"startMethod":"attach","pointerSize":64},"seq":25} 1> [DebugAdapter] <-- R (configurationDone-21) [144 ms]: {"type":"response","request_seq":21,"success":true,"command":"configurationDone","seq":26} 1> [DebugAdapter] <-- E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"No symbols have been loaded for this document."}},"seq":27} 1> [DebugAdapter] <-- E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":2,"verified":false,"message":"No symbols have been loaded for this document."}},"seq":28} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1000,"name":"System.Private.CoreLib.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Private.CoreLib.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546955853824","vsPreferredLoadAddress":"546955853824","vsModuleSize":14512640,"vsLoadOrder":0,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":29} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1001,"name":"ConsoleApp.dll","path":"/home/sa/VSLinuxDbg/ConsoleApp/ConsoleApp.dll","isOptimized":false,"isUserCode":true,"version":"1.00.0.0","symbolStatus":"Symbols loaded.","symbolFilePath":"/home/sa/VSLinuxDbg/ConsoleApp/ConsoleApp.pdb","vsLoadAddress":"548042842112","vsPreferredLoadAddress":"548042842112","vsModuleSize":4608,"vsLoadOrder":1,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/home/sa/VSLinuxDbg/ConsoleApp/ConsoleApp.dll'. Symbols loaded."},"seq":30} 1> [DebugAdapter] <-- E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"new","breakpoint":{"id":1,"verified":true,"BoundBreakpoints":[{"id":3,"verified":true,"source":{"name":"Program.cs","path":"C:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs","sourceReference":0,"checksums":[{"algorithm":"SHA256","checksum":"bbec03fd5e18f9d23abdb526cef6174c94c22b88a95493591ca2696d9317092e"}]},"line":6,"column":1,"endLine":6,"endColumn":36,"instructionReference":"0x0000007F5A0E22C0","offset":0}]}},"seq":31} 1> [DebugAdapter] <-- E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"new","breakpoint":{"id":2,"verified":true,"BoundBreakpoints":[{"id":4,"verified":true,"source":{"name":"Program.cs","path":"C:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs","sourceReference":0,"checksums":[{"algorithm":"SHA256","checksum":"bbec03fd5e18f9d23abdb526cef6174c94c22b88a95493591ca2696d9317092e"}]},"line":9,"column":5,"endLine":9,"endColumn":32,"instructionReference":"0x0000007F5A0E22F0","offset":0}]}},"seq":32} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1002,"name":"System.Runtime.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Runtime.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"548039782400","vsPreferredLoadAddress":"548039782400","vsModuleSize":33280,"vsLoadOrder":2,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":33} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1003,"name":"System.Console.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Console.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546972565504","vsPreferredLoadAddress":"546972565504","vsModuleSize":545280,"vsLoadOrder":3,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":34} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1004,"name":"System.Threading.Thread.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Threading.Thread.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"548042661888","vsPreferredLoadAddress":"548042661888","vsModuleSize":5632,"vsLoadOrder":4,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":35} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1005,"name":"System.Threading.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Threading.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546973220864","vsPreferredLoadAddress":"546973220864","vsModuleSize":398848,"vsLoadOrder":5,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":36} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1006,"name":"System.Runtime.InteropServices.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Runtime.InteropServices.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546973810688","vsPreferredLoadAddress":"546973810688","vsModuleSize":410112,"vsLoadOrder":6,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":37} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1007,"name":"Microsoft.Win32.Primitives.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/Microsoft.Win32.Primitives.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"548043218944","vsPreferredLoadAddress":"548043218944","vsModuleSize":5120,"vsLoadOrder":7,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":38} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1008,"name":"System.Collections.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Collections.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546974924800","vsPreferredLoadAddress":"546974924800","vsModuleSize":603648,"vsLoadOrder":8,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":39} 1> [DebugAdapter] <-- E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1009,"name":"System.Memory.dll","path":"/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Memory.dll","isOptimized":true,"isUserCode":false,"version":"8.00.824.36612","symbolStatus":"Skipped loading symbols.","vsLoadAddress":"546975645696","vsPreferredLoadAddress":"546975645696","vsModuleSize":478208,"vsLoadOrder":9,"vsIs64Bit":true,"vsAppDomain":"clrhost","vsAppDomainId":1},"vsMessage":"Loaded '/opt/dotnet/shared/Microsoft.NETCore.App/8.0.8/System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."},"seq":40} 1> [DebugAdapter] <-- E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":2116},"seq":41} 1> [DebugAdapter] <-- E (attachComplete): {"type":"event","event":"attachComplete","body":{},"seq":42} 1> WARNING: No handler registered for event of type 'attachComplete'! 1> [DebugAdapter] <-- E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":2111},"seq":43} 1> [DebugAdapter] <-- E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Attach","data":{"VS.Diagnostics.Debugger.vsdbg.Attach.DebuggerStartTime":648,"VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0,"VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.TargetCLRVersion":"8.0.824.36612","VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.Distribution.Version":"12","VS.Diagnostics.Debugger.vsdbg.Distribution.Name":"debian","VS.Diagnostics.Debugger.vsdbg.OSFamily":"Linux","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10904.2 commit:627030286402bd1121f458ef6ce78b9c67eacfef"}},"seq":44} 1> [DebugAdapter] <-- E (stopped): {"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":2111,"allThreadsStopped":true,"hitBreakpointIds":[4],"source":{"name":"Program.cs","path":"C:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs"},"line":9,"column":5},"seq":45} 1> [DebugAdapter] --> C (threads-22): {"type":"request","command":"threads","arguments":{},"seq":22} 1> [DebugAdapter] <-- R (threads-22) [14 ms]: {"type":"response","request_seq":22,"success":true,"command":"threads","body":{"threads":[{"id":2116,"name":"<No Name>"},{"id":2111,"name":"Main Thread"}]},"seq":46} 1> [DebugAdapter] --> C (stackTrace-23): {"type":"request","command":"stackTrace","arguments":{"threadId":2111,"startFrame":0,"levels":1000,"format":{"parameters":true,"parameterTypes":true,"parameterNames":true,"line":true,"module":true}},"seq":23} 1> [DebugAdapter] <-- R (stackTrace-23) [799 ms]: {"type":"response","request_seq":23,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"ConsoleApp.dll!Program.<Main>$(string[] args) Line 9","source":{"name":"Program.cs","path":"C:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs","sourceReference":0,"checksums":[{"algorithm":"SHA256","checksum":"bbec03fd5e18f9d23abdb526cef6174c94c22b88a95493591ca2696d9317092e"}]},"line":9,"column":5,"endLine":9,"endColumn":32,"instructionPointerReference":"0x0000007F5A0E22F0","moduleId":1001},{"id":1001,"name":"[External Code]","line":0,"column":0,"presentationHint":"label"}],"totalFrames":2},"seq":47} 1> [DebugAdapter] --> C (stackTrace-24): {"type":"request","command":"stackTrace","arguments":{"threadId":2111,"startFrame":0,"levels":1,"format":{"module":false}},"seq":24} 1> [DebugAdapter] <-- R (stackTrace-24) [0 ms]: {"type":"response","request_seq":24,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"Program.<Main>$","source":{"name":"Program.cs","path":"C:\\Users\\smetronic\\source\\repos\\ConsoleApp\\ConsoleApp\\Program.cs","sourceReference":0,"checksums":[{"algorithm":"SHA256","checksum":"bbec03fd5e18f9d23abdb526cef6174c94c22b88a95493591ca2696d9317092e"}]},"line":9,"column":5,"endLine":9,"endColumn":32,"instructionPointerReference":"0x0000007F5A0E22F0","moduleId":1001}]},"seq":48} 1> [DebugAdapter] --> C (vsCustomMessage-25): {"type":"request","command":"vsCustomMessage","arguments":{"message":{"sourceId":"{cefcfc81-d24b-4965-b409-c9bdb022cd05}","messageCode":3}},"seq":25} 1> [DebugAdapter] <-- R (vsCustomMessage-25) [537 ms]: {"type":"response","request_seq":25,"success":true,"command":"vsCustomMessage","body":{"responseMessage":{"sourceId":"{cefcfc81-d24b-4965-b409-c9bdb022cd05}","messageCode":3,"parameter1":["kYSxYWN0aXZlSW5zdHJ1Y3Rpb26Cpm1ldGhvZIKmbW9kdWxl2SQ0OGQ3OGQ3MC0zMDUzLTRmNjYtYWMyMS1jZGRjZjczMTc4MDKmbWV0aG9kgqV0b2tlbs4GAAABp3ZlcnNpb24BqGlsT2Zmc2V0IKxkb2N1bWVudE5hbWXZQEM6XFVzZXJzXHNtZXRyb25pY1xzb3VyY2VccmVwb3NcQ29uc29sZUFwcFxDb25zb2xlQXBwXFByb2dyYW0uY3Oqc291cmNlU3BhboSpc3RhcnRMaW5lCKtzdGFydENvbHVtbgSnZW5kTGluZQipZW5kQ29sdW1uH6VmbGFncwk="]}},"seq":49}
Thanks
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.