VS Code specifically talks about some support they added for debugging node apps under WSL with the addition of a "useWsl" : true setting that can be added to the launch.json file, but this is a complete red herring. ln -s /mnt/c/Users/dan/development ~/developmentĮven with this, and with VS Code happilly finding the files and launching and attaching to Chrome, breakpoints were never hit and were disabled with the breakpoint unverified message. If you visit 127.0.0.1:3000 in Chrome, you should see a prompt for username. Next, install the npm packages for the project: npm install. The first and commonly known step to open WSL folders in VS Code is to make sure the source directory is somewhere on your actual windows filesystem such as /mnt/c/Users/dan/development/web-app etc.Īs a side note, I created a symlink to my development folder under my WSL home to avoid having to cd in here all the time e.g. Start by navigating to the project directory and into the part-8 directory: cd Design-and-Build-a-Chat-Application-with-Socket.io. There are a couple ways to get started with it. I had the same problem, and this was my anycodingsjavascript-debugger workaround. Visual Studio Code includes a built-in debugger for Edge and Chrome. For now, Chrome needs to be started with remote debugging enabled, and only supports one concurrent connection. I had created a React app (using create-react-app) under my Windows Subsystem for Linux (WSL) environment on Windows 10 and wanted to debug from Visual Studio Code using the Chrome Debugger. Answers 1 : of Old debug session preventing debugging in chrome with vs code. This built-in debugger lets you debug your front-end JavaScript code line-by-line and see console.log () statements directly from Visual Studio Code. TypeScript is great for writing client-side code as well as Node.js applications and you can debug client-side source code with the built-in Edge and Chrome debugger.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |