Wsl2 visual studio code5/24/2023 VS will make a launch.json also but you'll need to add the two most important parts, the $adapter and $adapterArgs part as I have here. ![]() In some theoretical future Visual Studio would also detect the context and generate this file for you. We'll need a launch.json file with enough information to launch the project, attach to it with the debugger, and notice when things have started. That's done automatically with VS Code but I'll do it manually in one line like this: curl -sSL | /bin/sh /dev/stdin -v latest -l ~/vsdbg I'll need to make sure the VSDbg is installed in WSL/Linux first. In a perfect world - this is future speculation/brainstorming, Visual Studio would detect when you opened a project from a Linux path and "Do The Right Thing(tm)." I'll instead put my stuff at c:\temp\remotewebapp and access it from Linux as /mnt/c/temp/remotewebapp. ![]() " and it will launch Windows Explorer at the path \\wsl$\Ubuntu-18.04\home\scott\remotewebapp, but VS currently has some issues opening projects across this network boundary. I've got a web app ( dotnet new razor) that runs great in Linux now.įrom the WSL prompt within terminal, I can run "explorer.exe. I've installed from inside Ubuntu 18.04, under Windows. NET Core with C# for my platform and language of choice. Not needed for this, but it's awesome if you like the command line. Then I've got the new Windows Terminal.You can get WSL2 today in the Windows Insiders "Slow Ring." You can get WSL1 today on Windows from "windows features" just by adding it. To start, I've got WSL (specifically WSL2) on my Windows 10 machine. ![]() I wanted to see if it's possible to do 'remote' debugging with WSL and Visual Studio (not Code) and if so, is it something YOU are interested in, Dear Reader. ![]() VS Code is a great Code Editor but it's not a full IDE (Integrated Development Environment) so there's still lots of reasons for me to use and enjoy Visual Studio on Windows (or Mac). In fact there's a whole series of Remote Tutorials to check out here. Although WSL is not supported here, but I found something for you. You can use VS Code to develop on remote machines over SSH as well and it works great. Hi, I'm Sumit, here to answer your query at the Microsoft Community. A VSCode-Server will run in Linux and manage the Language Services, Debugger, etc, while Windows runs your VS Code instance. " from the Linux prompt and Visual Studio Code will launch in Windows and effectively split in half. With Visual Studio Code and WSL (Windows Subsystem for Linux) you can be in a real Linux environment and run "code.
0 Comments
Leave a Reply. |