How to debug external class library projects in visual studio?

I have a project(A) that references an assembly from an external project(B) class library that is located in another vs solution. I have yet to understand how i can efficiently debug the class...

Hit Breakpoint When Caused by the Debugger

Is there a way to have breakpoints hit when the action is caused by the Visual Studio debugger? For example, let's say I have the following (I know you shouldn't do this, just using it for...

assert afxcurrentinstancehandle null calling MFC dll from exe

I have a MFC app where I am calling a mfc dll (vtkMFC.dll) from the exe. There I am getting a debug assertion as below in afxwin1.inl. { ASSERT(afxCurrentInstanceHandle != NULL); I tried to use...

How to show Console.WriteLine output in my browser console or output window?

I wrote System.Console.WriteLine("How can I see this debugging information in a browser"); in the model of my ASP.NET MVC4 project. How can I see this debugging string in the browser console, or...

how can i tell which dylibs are loaded when debugging in Xcode?

I'm having some trouble with a particular library and I'm trying to test if an older version will fix my issue. The library is dynamically linked using dylib files stored near the .app file. These...

Cannot Connect to Server - A network-related or instance-specific error

I get the following error when trying to connect to SQL Server: Cannot connect to 108.163.224.173. A network-related or instance-specific error occurred while establishing a connection to SQL...

OpenCL code 'Error MSB3721' for Intel OpenCL SDK on Visual Studio 2010

I am currently using Intel's OpenCL SDK platform for heterogeneous parallel programming (OpenCL). I am using Visual Studio 2010 Ultimate for this. My system doesn't have any GPU in it. I have...

Visual Studio integrated Javascript debugging with Windows 10 Edge

Is there any way to enable Visual Studio integrated Javascript debugger with Windows 10 Edge? I mean the feature for stepping through the code, set breakpoints, etc. from inside the Visual Studio...

How to trigger omnicomplete/auto-completion on keystrokes in INSERT mode?

VIM's omnicomplete autocompletion is not really working as expected. Is there a way to make it smarter? Like, to monitor the context of surround text? (e.g. don't trigger if within comments or...

Disable MSBuild TypeScript Compile

For a Visual Studio projects such as a ASP.NET MVC5, how do you disable compiling of TypeScript files on build/debug? I currently have tsconfig.json compileOnSave and buildOnSave set to false....

How do I run a command after launching the debugger in the C/C++ extension for Visual Studio Code?

I have an embedded C project which I run on an ARM Cortex M4 on a custom board or a devkit, using gcc on a Mac. I've been using Visual Studio Code as an IDE for embedded C work for a bit and am...

Xamarin workflow on Windows

I'm aware that a Mac or a Mac service e.g. MacInCloud.com is necessary for building and submitting iOS apps. My question is about the actual workflow of building an app on Windows using Xamarin on...

Can the new csproj file structure be used with a ASP.NET Framework project?

The new .csproj format includes some significant improvements over the classic files, including tight integration with NuGet package management and significantly less-verbose structure. I want to...

ASP.NET Core 2 web application isn't loading user secrets when debugging IIS website

Note: this issue has now been resolved - see my Update 3 below for the solution. I have an ASP.NET Core 2 web app which needs to connect to a SQL Server database. As per my Update 2 below I'm...

JSON.NET Production Issue

I have an ASPNET Core project that is running a set of RESTful services using C# and Newtonsoft.JSON 11.0.2 which I incorporated using NuGet. When I run everything locally using Visual Studio...

How can I debug a python code in a virtual environment using VSCode?

EDIT Using VSCode, I had an issue while debugging in a virtual environment that have different packages which are not installed in the base environment. After activating the environment with the...

What is the default startup page for ASP.net Projects

I have an ASP.net project I'm working on (1st time in ASP.net) however I'm curious to know how I would find which page is the page Visual Studio launches when I start debugging. Each time I...

Visual Studio 2017/IIS Express: Unable to connect to the configured development Web server

saving work in progress When trying to run a web-site from Visual Studio 2019 (or Visual Studio 2017, or Visual Studio 2015), i get the error: Visual Studio 2015: Unable to connect to the...

UWP App can't connect to MongoDB when packed for deploy

I'm developing a UWP app using C# and the MongoDB connection works perfectly in the development computer. When I tried to export and install it in a different desktop it did not work. I have some...

How do I set up VSCode for C/C++ on Mac with Clang/GCC?

I have been trying to setup Visual Studios Code for my Mac and I am having issues with the launch.json and the task.json. I will be using the Clang compiler. I tried following microsoft's...

Flutter run (syncing files) does not finish

The flutter build/sync process does not finish for me. It's stuck at Syncing files to device Android SDK built for x86.... The issue happens with every app and is not connected to the emulator...

Qt VS Tools: error reading VS project settings

I develop an application using Visual Studio 2015 + Qt VS Tools extension. For me it's first time I used Qt (version 5.14.1) in my project. Everything was working fine until something wrong...

Visual Studio Code C# Debugging Problem (The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink.)

I created a workspace using dotnet new console, wrote some code. But when I try to start debugging it using the option Run/Start debugging in visual studio code, it fails with the...

Cannot debug client side blazor

Ok so plain and simple, I cannot seem to debug client-side blazor. I have added "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}" As...

How to force ASP.NET Core 5 source code to not be optimized

I'm trying to debug the Antiforgery code in the ASP.NET Core 5 framework. I have built the code successfully using the instructions in...

Visual studio's ASP.NET core with angular template always returns 401

I'm using Microsoft Visual Studio Community 2019 Version 16.10.2. I created an ASP.net core 5 project from their template "ASP.net core with Angular" with Authentication checked. But Every time I...

Checking for any code updates Visual Studio 2019 and 2022

Sometimes (often) I am getting the message Checking for any code updates during debugging: This makes productivity down. I did some research and find a post on the Visual Studio community:...

Visual studio 2022 crash on start debugging

Can anyone help me find why my visual studio 2022 crash everytime I start debugging? If I only run app it works fine. Also I have visual studio 2019 on the same windows 10 pc and all works fine....

Google.Cloud.Diagnostics.AspNetCore3 debug level not working

Consider a wizard generated ASP.NET Core project (NET 6). Add a Google.Cloud.Diagnostics.AspNetCore3 NuGet package and services.AddGoogleDiagnosticsForAspNetCore() to Startup.cs. Let...

Wrong result of multiplication: Undefined behavior or compiler bug?

Background While debugging a problem in a numerical library, I was able to pinpoint the first place where the numbers started to become incorrect. However, the C++ code itself seemed correct. So I...