Visual Studio Code - Javascript Errors Do Not Show File and Line - visual-studio-code

I am new to Visual Studio Code.
An error occurred in my javascript. In the console it said:
Uncaught TypeError: Cannot read property 'id' of undefined
But had underneath:
No debugger available, can not send 'variables'
I have Chrome Debugger installed in Visual Studio Code.
However, when I go the the Chrome Browser, when the program is running, and I look at the Console in the Developer Tools, it tells me the File and line number where the nefarious error occurred.
Why is it not showing this in Visual Studio Code?
How can I get it to show it in Visual Studio Code?

Related

The authentication in visual studio code gets cancelled

I have done on the coding part in visual studio code while using command palette to download symbols i can't able to download it rather in output it displays about the authentication has failed. How to solve that one ?

VS Code Error vs Visual Studio 2019 Error

I Used VS code to write some code but the compiler is working only in the terminal. So I set up Visual Studio 2019 For C++ but get an error that I didn't get in VS Code. (I know the solution to the error):
The uninitialized local variable 'name' used
and the solution is Just adding these {} brackets to the variable.
Why is This Happening in Visual Studio 2019 and not in VS Code?
Note: I Installed "MinGW" for VS Code and desktop development with C++ for Visual Studio 2019.
Additional: I Want Visual Studio 2019 to Show unused scopes (#Include things) and help me to clean code.
Check your exception settings in Visual Studio (Ctrl + Alt + E) and/or your Warning Level on the Project file (right click on project in solution explorer, click Properties, C/C++ > General > Warning Level).
The warning/exception controls in Visual Studio are rather detailed.
The "warning that is now an error" issue related to The uninitialized local variable 'name' used simply comes down to the out-of-the-box settings in Visual Studio. You can change them if you'd like. Technically, your code will compile under every C++ compiler I'm aware of, but has a greater likelihood of crashing.
As for whether it should be a warning or an error, that is more opinion than fact. My opinion is that it should be an error, because such situations can lead to very sneaky program crashes, but there is no hard-and-fast rule.

Error when launching Terminal in Visual Studio Code (terminated with exit code: 3221225477)

I'm a new user of Visual Studio Code and I came across the following error (see below) when trying to launch a Terminal inside VS Code.
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 3221225477.
I've tried fixing this by following the instructions on [Visual Studio Code Troubleshoot Terminal] (https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch) and also going through the Get Started documentation on the Visual Studio Code website.
I've also tried copying the error message and pasting on Google to search for a solution but only one relevant site came up here and I still could not find a fix.
I'm using a Dell XPS machine running Windows 10 (x64) and Visual Studio Code 1.51.0 (x64 UserSetup).
Can someone please assist? Thanks in advance!
Try the following:
If your computer is running powershell, turn it off.
Control Panel -> Programs -> Turn Windows features on of off
Search Window Powershell 2.0 -> Uncheckbox -> OK
Restart

Debugging Uncaught Exceptions or All Exceptions in Visual Studio Code

You can clearly see in the picture here that you used to be able to break on all or uncaught exceptions in vscode:
https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome
On the current version of vscode and this plugin (vscode 1.1.1, chrome-debug 0.3.1) those checkboxes seem to be gone from the Breakpoints section of the debug window.
Was that feature moved, or is it not available anymore?

Visual Studio TFS Plugin - How to register page?

I would like to develop a TFS plugin that displays a simple page in the Team Explorer. To do this, I loosely followed this project. I'm able to register a menu command, but when the command is invoked my page that I derive from TeamExplorerPageBase is unknown to the Team Explorer. The code to load the page is:
var teamExplorer = (ITeamExplorer)(this.ServiceProvider.GetService(typeof(ITeamExplorer)));
teamExplorer.NavigateToPage(new Guid(BiscomTfsLabelPage.Id), null);
the call to NavigateToPage returns an error:
So how do I register the page with Team Explorer??
UPDATE:
Looks like it's an issue with the debugger, because when I run the VSIX file that gets output by the build, then open a new instance of Visual Studio it works:
So now I'd really like to know if there's a way that I can debug the extension, since it doesn't seem to register the page if I use the debugger.
Since it works in a new instance of Visual Studio. You could try to debug it with a new opened Visual Studio.
Go to the properties of your project and look under the debug tab, find a Start Action. Select to "Start external program" and browse to where you have visual studio installed. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe