watching return-values in Visual Studio Code - debugging

When debugging, is it possible to watch return-values in VSC? and how?
I can't find an option to watch auto-variables like Visual Studio has

See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_44.md#reference-returnvalue-in-watches-and-debug-console JAVASCRIPT
With v1.44:
Reference $returnValue in Watches and Debug Console
When it's availble in the callstack, you can now reference the
function's $returnValue in the debug console and watch expressions.
So it can be used in the Watch view and the debug console.

Visual Studio Code recently supported this - the returned value can be found under "Local":

Related

Log complete call stack in Visual Studio

In Visual Studio Debug mode one can view the partial call stack when reaching a given breakpoint. I want to save and search the complete call stack during debug mode, without setting any special breakpoint. If and how is that possible? I am using Visual Studio 2019 Preview.
For a .NET application, you can use my Runtime Flow extension to collect a complete function calls sequence. It works outside debug mode and without setting breakpoints.

Disable Visual Studio Special Debugging Features

I am new to Visual Studio, so I am used to IntelliJ and Eclipse style of functioning. I usually do not use a debugger when I develop, so I do not want to use it in Visual Studio too.
Is it possible to disable all special debugging functionalities which Visual Studio provides when you start your application? I want to have only normal output for the errors. When I disable all debugging, then I do not have usual output too, so this is not an option.
I tried many settings, but nothing seems to work and give me the results I want - no extra popup windows, no shiny layout changes when you have an error, just ordinary output.
Thanks!
Everyone's definition of "normal output" is different. Personally, I like the way Visual Studio handles debugging.
The console window in Visual Studio is a debugger feature and hence that is why it doesn't work when it's not attached to the process. If you want a stack trace without attaching, you could use your language/framework's built-in facilities such as an Exception or StackTrace in the case of .NET. You could also have Windows write a crash dump, but then you are debugging the corpse inside of Visual Studio.

Console output in Visual Studio 2010 C++ Like Chrome

I am A PHP Developer, and first time working in Visual Studio C++ and wondering if there is some way through which i can display variables or contents to debug my application.
Is there any functionality like Console in Chrome as console.log(myvariable)?
You could use the TRACE macro.
TRACE( "This is a TRACE statement\n" );

Can't show Debug output on Visual Studio 2012

I tried to configure the storage for my debugging data in Azure Storage by following the instructions in this page (source). After doing this the outputs from Diagnostics like Debug.WriteLine stopped appearing on the Debug output of Visual Studio which I didn't intend to happen.
After a while it was decided it wasn't necessary to store the debug data in the end, so I deleted the diagnostics.wadcfg file and removed the diagnostics configuration from the Web.config file of my role and from both ServiceConfiguration.Local.cscfg and ServiceConfiguration.Cloud.cscfg files, hoping that would restore the output to Visual Studio . It didn't.
How can I restore fully the Debug output to be displayed on Visual Studio console once again? It's really hard to work without these outputs of information.
Any help will be appreciated.
Try going to Visual Studio > Tools> Options > Debugging > Output Window > And check the options there for Output types.
Be sure you are runnning the project un Debug mode and not in Release mode.
In window--->Reset window layout

how to stop the showing error message in visual studio for jscript in visual studio 2010

i am using IE 8 for testing the javascript i write for my web-application. i use something who are not unknown for IE 8 so they give me error each time
"Microsoft JScript runtime error: Object doesn't support this property or method".
are their any way to stop this error showing in visual studio when i debug the javascript.
when i refresh the page they give me error in visual studio. well i not want to see anything like showing error in visual studio.
so how i can disable the showing error for javascript in visual studio even i need to work with javascript breakpoint and trackpoint.
Unless I missed something, there's only three things I can think of:
Fix the bug
Debug in IE with the javascript debugger, instead of Visual Studio
Fix the bug
I recommend 1 or 3 ;)

Resources