. Advertisement .
..3..
. Advertisement .
..4..
The error: “VSCODE: No debug adapter, can not send ‘variables’” is a common error that can show up in many ways. In this blog, we will go through some of the ways you can fix this issue. Read on.
When Does The Error: “VSCODE: No debug adapter, can not send ‘variables’” Happen?
In your console, you might get the issue below when running your code in vs code.
constructor:function Object() { … }
hasOwnProperty:function hasOwnProperty() { … }
No debug adapter, can not send 'variables'
isPrototypeOf:function isPrototypeOf() { … }
No debug adapter, can not send 'variables'
You have encountered the error “VSCODE: No debug adapter, can not send ‘variables’” because the debugger exits after the code execution has been completed. The debug adapter is no longer accessible to give the variables.
How To Fix The Error “VSCODE: No debug adapter, can not send ‘variables’”
Approach 1: Just return it to
An integrated terminal with all the features of Visual Studio Code conveniently launches at the top of your workspace. In order to support features like links and error detection, it offers integration with the editor.
In Visual Studio Code, there are two ways to use terminals for debugging:
- Use the Visual Studio Code Terminal as the first option (integrated terminal).
- Use the native (OS) Terminal (external terminal) as an alternative.
When attempting to utilize integratedConsole instead of externalTerminal or integratedTerminal as part of your Node configuration within launch, you will get this error. json. Just return it to:
"console": "integratedTerminal"
Approach 2: Add an extra line
Due to the debugger exits after the code execution has been completed and the debug adapter is no longer accessible to give the variables, so you can add an extra line at the bottom of the code execution and use that as a breakpoint to fix the error “VSCODE: No debug adapter, can not send ‘variables’”. It’s not nice, but it will get the job done.
Approach 3: Try using the following code
Another way to solve the “VSCODE: No debug adapter, can not send ‘variables’” is trying using the following code in your launch.json:
"outputCapture": "std"
Above solutions are very simple, right? However they will give you amazing result. They help your error can be completely resolved and your program will run well. Let’s try them to get your desired results.
Conclusion
We hope you enjoy our article about the error. With this knowledge, we know that you can fix your error: “VSCODE: No debug adapter, can not send ‘variables’” quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Read more
Leave a comment