debugging

Setting up to invoke form helpers from Rails console

▼魔方 西西 提交于 2021-02-07 12:51:41
问题 I'd like to experiment with using form helpers inside the Rails console, but my simple minded approach of doing extend ActionView::Helpers::FormHelper didn't work. For example, subsequently calling form_for resulted in the error NoMethodError: undefined method 'dom_class' for main:Object . Using include produces the same results. Is there an "easy" way to enable me to call form helpers from the console? I'd prefer to do this without any dependency on controller or view files, if possible. 回答1

VS 2015 Update 2 - Variable does not exist when debugging, why?

只愿长相守 提交于 2021-02-07 11:32:25
问题 I'm using VS 2015 Update 2 with an asp.net 5 web project configured for debug mode. When I run the project with F5 to debug it and hit a break point, some variables can not be observed in the watch window even when they are in scope. Further, if I hover over such variables no value is displayed. If I use the same visual studio to create an empty web project and add a webform and place the code in the load method, the debugger works fine. That is to say, I can see the variables in the watch

Is there a way to “map” the program execution order in Visual Studio or MATLAB?

有些话、适合烂在心里 提交于 2021-02-07 10:43:04
问题 What I mean by "map" is that I have a "main" function which calls many other programs inside, and I want to be able to see which file runs first, second, third, etc. Basically, I want to be able to see the list and order of dependencies in this large OOP design program (which the creator did not make a UML class diagram for) to help decipher the code. Surely such a functionality must exist in popular IDE's? I'm mostly dealing with C++ and MATLAB so I'm more concerned with these two

Debugging 32 bit application running in 64 bit environment

风流意气都作罢 提交于 2021-02-07 10:20:57
问题 I have a 32 bit .Net 4.0 application running in a wow64 environment in a 64 bit machine. The application encountered an error and I took a dump with 32 bit taskmanager present in C:\Windows\SysWOW64\taskmgr.exe I am using a 32 bit Windebugger to analyze this dump. I loaded the following dlls. 1).loadby sos CLR 2).load mscordacwks ( from the client machine). But still I am not able to use SOS commands like !clrstack,!threads etc. I get the error: Failed to load data access DLL, 0x80004005 What

WinDbg windows symbols

独自空忆成欢 提交于 2021-02-07 09:45:37
问题 I am trying to debug a dump file for an application that I wrote. I added the following symbols paths to WinDbg I assumed this would download the windows symbols necessary to debug this. I then run the following cammand in WinDbg "!analyze -v" This starts analyzing and then fails because of symbols it cannot find. When I look at C:\MyServerSymbols I see the following I would have expected to see more than just the kernelbase.dll The analyze command is complaining that it cannot find the ntdll

VS Code Python Debugger “timed out waiting for debuggee to spawn”

纵饮孤独 提交于 2021-02-07 09:20:08
问题 My debugger doesn't even begin to run my code. I press F5, the debug tab opens, shows that it is loading, and after a while it says "Session-1 timed out waiting for debuggee to spawn" in a pop-up window. I'm using VS Code version 1.40.1, I have my virtual environment setup, and the debugger used to work, stopping at breakpoints and changing the color of the blue bar at the bottom of the screen. Issue appeared while messing with the open() function, but the debugger doesn't work with any file.

VS Code Python Debugger “timed out waiting for debuggee to spawn”

帅比萌擦擦* 提交于 2021-02-07 09:16:08
问题 My debugger doesn't even begin to run my code. I press F5, the debug tab opens, shows that it is loading, and after a while it says "Session-1 timed out waiting for debuggee to spawn" in a pop-up window. I'm using VS Code version 1.40.1, I have my virtual environment setup, and the debugger used to work, stopping at breakpoints and changing the color of the blue bar at the bottom of the screen. Issue appeared while messing with the open() function, but the debugger doesn't work with any file.

How to debug cake project in vscode?

大憨熊 提交于 2021-02-07 09:11:57
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

How to debug cake project in vscode?

安稳与你 提交于 2021-02-07 09:02:29
问题 Please provide cake project debugging steps with VS Code in Visual Studio 2015 not installed machine. I could not find any debugging steps in cake documentation. 回答1: Install Cake.CoreCLR NuGet package to your tools folder Install Cake Extension for Visual Studio Code Set up .NET Core debugger in Visual Studio Code. See http://aka.ms/vscclrdebugger for details Open the directory containing your Cake files in Visual Studio Code Create file .vscode/launch.json and add the following content

How to debug Azure Web App memory leaks?

爱⌒轻易说出口 提交于 2021-02-06 20:06:46
问题 There is the excellent Start Profiling button in the SCM portal that works perfect for CPU. Then there are some sources that refer to a Download GC Dump button: https://stackoverflow.com/a/27987593/647845 But that doesn't seem to be available anymore. Then there is the Download memory dump button. But for now I can't figure out how/if I can see the Type / Refcount / Size stastistics that I'm used too. What is the recommended way to look for memory leaks in a C# Azure Web App? 回答1: Try using