debug-symbols

Visual Studio: debug information in release build

痞子三分冷 提交于 2019-11-27 13:46:24
问题 I'm tempted to include debug information in my release builds that go out to customers. As far as I see the only down side is 25% increase in the binary file size. The advantage is that I can get an immediately usable crash dump, much easier to analyze. I'm willing to live with the 25% increase. Are there any other disadvantages I'm missing? This is a C project and all I want to do is Linked/Debugging/Generate Debug Info 回答1: The size of the executable should increase much less than 25%. I'm

C# and ASP.NET MVC: Using #if directive in a view

*爱你&永不变心* 提交于 2019-11-27 13:25:38
I've got a conditional compilation symbol I'm using called "RELEASE", that I indicated in my project's properties in Visual Studio. I want some particular CSS to be applied to elements when the RELEASE symbol is defined, and I was trying to do that from the view, but it doesn't seem to be working. My view code looks like this (shortened a bit for demo purposes): <% #if (RELEASE) %> <div class="releaseBanner">Banner text here</div> <% #else %> <div class="debugBanner">Banner text here</div> <% #endif %> With this code, and with the RELEASE symbol set, the 'else' code is running and I'm getting

Visual Studio breakpoints break in the wrong source file (or multiple files simultaneously) if multiple files have the same name

我们两清 提交于 2019-11-27 12:41:43
问题 In a team project I'm working on, setting a breakpoint in a file (say IdeasController.cs ) will lead to erratic debugger behaviour if there's another file with the same name in the solution. I've reproduced the problem on several developers' workstations. Example I set a breakpoint in IdeasController.cs in our Web API: Another file called IdeasController.cs exists in our separate MVC 4 web project. In the screenshot below, the debugger shows the Api->IdeasController source code, but the line

How to disassemble one single function using objdump?

一个人想着一个人 提交于 2019-11-27 10:54:46
I've got a binary installed on my system, and would like to look at the disassembly of a given function. Preferrably using objdump , but other solutions would be acceptable as well. From this questions I've learned that I might be able to disassemble part of the code if I only know the boundary addresses. From this answer I've learned how to turn my split debug symbols back into a single file. But even operating on that single file, and even disassembling all the code (i.e. without start or stop address, but plain -d parameter to objdump ), I still don't see that symbol anywhere. Which makes

How do I debug .NET 4.6 framework source code in Visual Studio 2017?

爱⌒轻易说出口 提交于 2019-11-27 08:04:05
Here's what I've tried: Made a new Console App (.NET Framework) in Visual Studio 2017. Added the following code: static void Main(string[] args) { new Dictionary<int, int>().TryGetValue(3, out int x); //I want to step into TryGetValue() (this is just an example) } Configured the settings listed here: https://blogs.msdn.microsoft.com/sburke/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code/ Confirmed symbols are loaded in the Modules window: mscorlib.dll Symbols loaded. 4.6.1586.0 built by: NETFXREL2 Tried: "Step Into (F11)" Tried: "Step into Specific" | "System

How can I check on debug symbol status with Eclipse?

我是研究僧i 提交于 2019-11-27 06:08:50
问题 While discussing another question I asked, @Aaron Digulla pointed out the following: If you installed the Java SDK, there should be a "src.zip" file in the root directory of the Java installation. If it's missing, download Java again. Eclipse should find the source automatically and show it to you when you open the type JTable (or when you click on the line in the stack trace). The file src.zip is present for me, but I still can't access the source of JTable like @Aaron said. What could be

Should I compile release builds with debug info as “full” or “pdb-only”?

偶尔善良 提交于 2019-11-27 06:02:41
In Visual Studio 2010 for a C# project, if you go to Project Properties > Build > Advanced > Debug Info you have three options: none, full, or pdb-only. Based on the answer to this question , I believe I understand some of the differences between full and pdb-only. However, which is more appropriate for a release build? If I use "full" will there be performance ramifications? If I use "pdb-only" will it be harder to debug production issues? What is the difference between "full" and "pdbonly"? https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/debug-compiler

Getting the original variable name for an LLVM Value

不羁岁月 提交于 2019-11-27 05:25:32
问题 The operands for an llvm::User (e.g. instruction) are llvm::Values. After the mem2reg pass, variables are in SSA form, and their names as corresponding to the original source code are lost. Value::getName() is only set for some things; for most variables, which are intermediaries, its not set. The instnamer pass can be run to give all the variables names like tmp1 and tmp2 , but this doesn't capture where they originally come from. Here's some LLVM IR beside the original C code: I am building

Trying to debug Windows Store App from dump files

假如想象 提交于 2019-11-27 05:22:40
Let me start with my main questions, then below I will add some specifics and history. I have done research, but can't seem to fit the pieces together. Please ask for clarification before voting me down. My questions: Why would my Windows Store app start and run correctly locally on my Win 8.1 64 bit AND my Win 8.1 32 bit (Atom) tablet, but not start for other users? When I get the dump file from Windows Store certification failure, how can I get the debug symbols to work so I can see more of the issue? When I build in 'Release' mode, does it actually put the symbols into the .pdb files? And

Visual Studio loading symbols

旧巷老猫 提交于 2019-11-27 04:09:43
问题 I'm working on a ColdFusion project for a while now, and Visual Studio started to behave strange for me at least. I observed that when I started debugging, it built the project, it started the deploy, and the deploy finished and it was starting to load symbols for my project. But it was very slow, and I don't know why it started to do this step. What may I have done? Is this symbol loading step necessary? How can I disable it? In the Tools -> Options -> Debugging -> Symbols dialog there is no