Extension version: 0.41.6, Windows build: 19041. Starting VS Code Server inside WSL (Ubuntu) (anonymous) extensionHostProcessManager.ts:78Ģlog.ts:196 ERR connect ECONNREFUSED ::1:43659: Error: connect ECONNREFUSED ::1:43659Īt TCPConnectWrap.afterConnect (net.js:1054:14) (anonymous) extensionHostProcessManager.ts:77ĮxtensionHostProcessManager.ts:78 Error: connect ECONNREFUSED ::1:43659 Error:ĮxtensionHostProcessManager.ts:77 Error received from starting extension host NotificationsAlerts.ts:40 Could not fetch remote environmentĢlog.ts:196 ERR Error: Unable to read file (Error: connect ECONNREFUSED ::1:43659)Īt _.doReadAsFileStream (fileService.ts:456)Īt processTicksAndRejections (internal/process/task_queues.js:89) OnDidNotificationChange notificationsAlerts.ts:40 NotificationsAlerts.ts:40 Failed to connect to the remote extension host server (Error: connect ECONNREFUSED ::1:43659) Log.ts:196 ERR An error occurred in the very first connect attempt, it will be treated as a permanent error! Error: Log.ts:196 ERR Error: connect ECONNREFUSED ::1:43659Īt TCPConnectWrap.afterConnect (net.js:1054) vscode/launch.json, change $\\BUILD\\YOUR_TARGET\\GCC_ARM.ERR nnect() failed. vscode/launch.json, replace both instances of make with mbed. vscode/tasks.json, change args to: "args": , vscode/tasks.json, replace the four instances of make with mbed. Visual Studio Code uses make to build your application by default. To put a watch on a memory location, type -exec watch *0xdeadbeef. For example, to see the registers, type -exec info registers. Tip: You can use the Debug Console to interact with the device over GDB and use functionality the UI does not expose. To see warnings or errors, select View > Problems.Ĭlick on Debug Console to see the debug output (this is not activated automatically). The project builds, and debugging starts when the build succeeds. To find the new path, open a terminal, and run where arm-none-eabi-gdb (Windows) or which arm-none-eabi-gdb (macOS and Linux).
Note: If you installed the GNU Arm Embedded Toolchain in a nondefault location (for example, through the Arm Mbed CLI installer), you need to update the MIDebuggerPath to the full path of your copy of arm-none-eabi-gdb. For more info, read our toolchain document.
You need to install Visual Studio Code with the C/C++ extensions to begin. Before starting, first configure your local debug toolchain.Īlso install GNU Make or Mbed CLI to build the project.
This document explains how to build and debug Arm Mbed OS applications using Visual Studio Code.