Can’t get VSCode/Python debugger to find my project modules

A simple workaround to the bug mentioned by @BrettCannon is to add the following env entry to the launch.json configuration: { “version”: “0.2.0”, “configurations”: [ { “name”: “Python: Current File”, “type”: “python”, “request”: “launch”, “program”: “${file}”, “console”: “integratedTerminal”, “env”: { “PYTHONPATH”: “${workspaceRoot}”} } ] }

Visual Studio 2013 can’t debug javascript in cshtml

So, apparently this is a “known issue” that will be fixed as soon as possible. A temporary work around that works for “some” people is making sure any Javascript is in a separate file. It is caused by having RAZR and Javascript in the same file and Visual Studio 2013 not being able to handle … Read more

VS2012 Breakpoints are not getting hit

Some ideas. Make sure it’s a debug build and not release Turn off optimizations in your project properties if they are on Try inserting Debugger.Break() in your code instead of a breakpoint in VS Make sure breakpoints are enabled (Debug->Windows->Breakpoints toolbar), and breakpoint symbol should be solid Execute your application. Load Debug->Window->Modules window. Check your … Read more

ASP.NET MVC5/IIS Express unable to debug – Code Not Running

For me the solution was a much simpler one. In my Solution Explorer in Visual Studio, I right click on the web project, chose properties and then navigated to the “web” tab. From there I changed the Project URL to another port number. For example, if it was http://localhost:1052 – I changed it to http://localhost:4356. … Read more

Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads were allowed to run

I add the same error message but with a different function name : To prevent an unsafe abort when evaluating the function ‘Microsoft.VisualStudio.Debugger.Runtime.Tracing.Refresh’ all threads were allowed to run. This may have changed the state of the process and any breakpoints encountered have been skipped. This is how I got rid of this pesky bug … Read more

How to debug class library that called from external app?

Yes, you can do this with Visual Studio. You have two options: Configure your project to start the external program Open your DLL project. On the properties for the project, go to the Debug tab. Choose Start external program and give the path of the external program that will call your DLL, along with any … Read more

How do I get Visual Studio to stay on one thread when debugging?

When you say, “when debugging a certain thread, visual studio will just jump around randomly to different threads”, do you mean that as you step through code on a particular thread you may hit a breakpoint on a different thread? If so, you can use the Thread window to ‘freeze’ threads other than the one … Read more

‘Step Into’ is suddenly not working in Visual Studio

With Visual Studio closed: Delete the solution’s suo file (contains debug information, user settings such as break points, bookmarks, and other user settings.) Delete the Visual Studio cache files (see below) Delete all temporary files (a shift from VS9 to VS10 is that VS10 uses the temp folder) Manually delete all obj and bin folders … Read more