Though I primarily use vim, I got VSCodium so I could use it as a debugger since its much easier to set up. I am having alot of trouble getting any use out of it though, when I run the program the IDE gives me errors if I type in the debug console, and closes the terminal if I type in the integrated terminal. I’ve changed the config to allow integrated terminal, but nothing has changed.

Can anyone help me figure this out, or recommend an alternative tool for debugging a C# program?

Edit: I finally found my answer: https://discuss.cachyos.org/t/debugging-c-console-apps-on-linux-with-vs-codium-readline-input-not-working/16493

Unfortunately there is no FOSS way to debug a C# application in VSCodium. Might have to see what this lldb tool is.

  • nark3d@thelemmy.club
    link
    fedilink
    arrow-up
    3
    ·
    1 hour ago

    The limitation is the debug adapter, not VSCodium itself. The FOSS C# adapter, netcoredbg, can’t feed stdin through the integrated terminal. Only Microsoft’s vsdbg does that, and its licence ties it to official VS Code and Visual Studio. The way round it that’s worked for me is to skip launch mode and attach instead: start the program yourself in a normal terminal, then use an attach configuration to hook netcoredbg onto the running process. You get breakpoints and inspection, and since it’s a real terminal the stdin behaves. Not as smooth as launch, but it stays fully FOSS.

    • dr_robotBones@reddthat.comOP
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      18 hours ago

      It seems JetBrains or the proprietary version of VSCode are the only convenient options, but they’re so intrusive…

    • dr_robotBones@reddthat.comOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      18 hours ago

      Yes that’s how I set it to integratedTerminal

      Edit: That probably is the solution on VSCode, but I found out the only debuggers available on VSCodium do not have anyway to connect to the terminal