{"id":9819,"date":"2025-10-21T23:43:13","date_gmt":"2025-10-21T22:43:13","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=9819"},"modified":"2025-10-21T23:47:32","modified_gmt":"2025-10-21T22:47:32","slug":"dotnet-debug-on-linux","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/dotnet-debug-on-linux\/","title":{"rendered":"DotNet debug on linux"},"content":{"rendered":"\n<p>Install netcoredbg and after that the dotnet-sdk<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/Samsung\/netcoredbg\">https:\/\/github.com\/Samsung\/netcoredbg<\/a><\/p>\n\n\n\n<p>Arch linux:<\/p>\n\n\n\n<p><a href=\"https:\/\/aur.archlinux.org\/packages\/netcoredbg\">https:\/\/aur.archlinux.org\/packages\/netcoredbg<\/a><\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"sh\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\"># i use picaur, but choose one of:  pacaur, pikaur, yay, aura, paru, aurman, ..?\npicaur -S netcoredbg\n\nsudo pacman -S dotnet-sdk-8.0<\/pre><\/div>\n\n\n\n<p>Install the vscode extension<\/p>\n\n\n\n<p><a href=\"https:\/\/open-vsx.org\/extension\/blipk\/csharp\">https:\/\/open-vsx.org\/extension\/blipk\/csharp<\/a><\/p>\n\n\n\n<p>Download the vsix file from the <a href=\"https:\/\/github.com\/blipk\/vscodium-csharp\/releases\/latest\">latest release assets<\/a>.<\/p>\n\n\n\n<p>Open the command pallete (<code>Ctrl+Shift+P<\/code>) then run <code>Extensions: Install from VSIX<\/code><\/p>\n\n\n\n<p>After installation open your workspace\/solution\/project<\/p>\n\n\n\n<p>Add:  \/.vscode\/tasks.json<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"json\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">{\n    \"version\": \"2.0.0\",\n    \"tasks\": [ \n        {\n            \"label\": \"build\",\n            \"command\": \"\/usr\/bin\/dotnet\",\n            \"type\": \"shell\",\n            \"args\": [\n                \"build\",\n                \/\/ Ask dotnet build to generate full paths for file names.\n                \"\/property:GenerateFullPaths=true\",\n                \/\/ Do not generate summary otherwise it leads to duplicate errors in Problems panel\n                \"\/consoleloggerparameters:NoSummary\"\n            ],\n            \"group\": \"build\",\n            \"presentation\": {\n                \"reveal\": \"silent\"\n            },\n            \"problemMatcher\": \"$msCompile\"\n        }\n    ]\n}<\/pre><\/div>\n\n\n\n<p>Add: \/.vscode\/launch.json (Replace &#8216;MyProject&#8217; with your project name)<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"json\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"netcoredbg\",\n            \"type\": \"coreclr\",\n            \"request\": \"launch\",\n            \"preLaunchTask\": \"build\",\n            \"program\": \"${workspaceFolder}\/MyProject\/bin\/Debug\/net8.0\/MyProject.dll\",\n            \"args\": [],\n            \"cwd\": \"${workspaceFolder}\",\n            \"env\": {\n                \"DOTNET_ENVIRONMENT\": \"Development\"\n            }\n        }\n    ]\n}<\/pre><\/div>\n\n\n\n<p>Add global.json to ensure it finds the SDK version<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"json\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">{\n  \"sdk\": {\n    \"rollForward\": \"latestMajor\",\n    \"version\": \"8.0.0\"\n  }\n}<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Install netcoredbg and after that the dotnet-sdk https:\/\/github.com\/Samsung\/netcoredbg Arch linux: https:\/\/aur.archlinux.org\/packages\/netcoredbg Install the vscode extension https:\/\/open-vsx.org\/extension\/blipk\/csharp Download the vsix file from the latest release assets. Open the command pallete (Ctrl+Shift+P) then run Extensions: Install from VSIX After installation open your workspace\/solution\/project Add: \/.vscode\/tasks.json Add: \/.vscode\/launch.json (Replace &#8216;MyProject&#8217; with your project name) Add global.json to ensure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9819","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=9819"}],"version-history":[{"count":3,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9819\/revisions"}],"predecessor-version":[{"id":9823,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9819\/revisions\/9823"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=9819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=9819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=9819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}