debugging

How do I obtain a crash dump

孤人 提交于 2019-12-28 02:59:10
问题 I need to get a crash dump from a program. How do i get it? The Program is written in C#. What exactly is a crash dump? When is it created? Where is it saved? How do i read it? 回答1: Since you are saying C# I assume you are using the Windows platform. A crashdump, or just dump, is the complete memory snapshot and other related system info of a process at a particular point in time. Dumps can be used to debug program crashes, hangs, memory and resource leaks and probably more problems I have

JavaScript Troubleshooting Tools in Internet Explorer

混江龙づ霸主 提交于 2019-12-28 02:49:08
问题 I use Firebug and the Mozilla JS console heavily, but every now and then I run into an IE-only JavaScript bug, which is really hard to locate (ex: error on line 724 , when the source HTML only has 200 lines). I would love to have a lightweight JS tool ( a la firebug) for Internet Explorer, something I can install in seconds on a client's PC if I run into an error and then uninstall. Some Microsoft tools take some serious download and configuration time. Any ideas? 回答1: You might find Firebug

Best way to detect a release build from a debug build? .net

送分小仙女□ 提交于 2019-12-28 02:13:06
问题 So I have about 10 short css files that I use with mvc app. There are like error.css login.css etc... Just some really short css files that make updating and editing easy (At least for me). What I want is something that will optimize the if else branch and not incorporate it within the final bits. I want to do something like this if(Debug.Mode){ <link rel="stylesheet" type="text/css" href="error.css" /> <link rel="stylesheet" type="text/css" href="login.css" /> <link rel="stylesheet" type=

How to set a breakpoint in GDB where the function returns?

此生再无相见时 提交于 2019-12-28 02:06:43
问题 I have a C++ function which has many return statements at various places. How to set a breakpoint at the return statement where the function actually returns ? And what does "break" command without argument means? 回答1: break without arguments stops execution at the next instruction in the currently selected stack frame. You select strack frames via the frame or up and down commands. If you want to debug the point where you are actually leaving the current function, select the next outer frame

How do you debug Java Applets?

淺唱寂寞╮ 提交于 2019-12-28 01:49:12
问题 Currently, the only information I have is a one-line error message in the browser's status-bar. Do you know how I could get a stack-trace for example ? 回答1: This article is a bit old but is still relevant (including a section entitled "How to Debug Applets in Java Plug-in"). Edit: perhaps a better way to get stacktraces is to use the Java plugin console. If you hit "t" in that window, you'll see the following: Prints out all the existing thread groups. The first group shown is Group main. ac

Visual Studio 2015 Debugging: Can't expand local variables?

ε祈祈猫儿з 提交于 2019-12-27 23:37:39
问题 I'm using Visual Studio 2015 preview, and I'm trying to debug my project. I was using VS 2012 previously, and depended largely on being able to hover over and expand local variables to look at their values. I'm trying to do this in 2015 now, but when I hover over a variable, the box that shows up only says "(local variable) Classname variablename" (e.g. "(local variable) String title"). There is no expand button, and it doesn't show the value of the variable in the box. Is there a setting I

Visual Studio 2015 Debugging: Can't expand local variables?

不羁岁月 提交于 2019-12-27 23:36:24
问题 I'm using Visual Studio 2015 preview, and I'm trying to debug my project. I was using VS 2012 previously, and depended largely on being able to hover over and expand local variables to look at their values. I'm trying to do this in 2015 now, but when I hover over a variable, the box that shows up only says "(local variable) Classname variablename" (e.g. "(local variable) String title"). There is no expand button, and it doesn't show the value of the variable in the box. Is there a setting I

How to detect and debug multi-threading problems?

久未见 提交于 2019-12-27 16:27:27
问题 This is a follow up to this question, where I didn't get any input on this point. Here is the brief question: Is it possible to detect and debug problems coming from multi-threaded code? Often we have to tell our customers: "We can't reproduce the problem here, so we can't fix it. Please tell us the steps to reproduce the problem, then we'll fix it." It's a somehow nasty answer if I know that it is a multi-threading problem, but mostly I don't. How do I get to know that a problem is a multi

How to detect and debug multi-threading problems?

为君一笑 提交于 2019-12-27 16:26:32
问题 This is a follow up to this question, where I didn't get any input on this point. Here is the brief question: Is it possible to detect and debug problems coming from multi-threaded code? Often we have to tell our customers: "We can't reproduce the problem here, so we can't fix it. Please tell us the steps to reproduce the problem, then we'll fix it." It's a somehow nasty answer if I know that it is a multi-threading problem, but mostly I don't. How do I get to know that a problem is a multi

How to detect and debug multi-threading problems?

不羁的心 提交于 2019-12-27 16:26:05
问题 This is a follow up to this question, where I didn't get any input on this point. Here is the brief question: Is it possible to detect and debug problems coming from multi-threaded code? Often we have to tell our customers: "We can't reproduce the problem here, so we can't fix it. Please tell us the steps to reproduce the problem, then we'll fix it." It's a somehow nasty answer if I know that it is a multi-threading problem, but mostly I don't. How do I get to know that a problem is a multi