debugging

Convert a libc backtrace to a source line number

三世轮回 提交于 2020-01-01 01:58:06
问题 I have an MPI application with which combines both C and Fortran sources. Occasionally it crashes due to a memory related bug, but I am having trouble finding the bug (it is somewhere in someone else's code, which at the moment I'm not very familiar with). I haven't yet been able to catch it with gdb, but sometimes a glibc backtrace is output as shown below. The bug is probably close to "(main_main_+0x3bca)[0x804d5ce]", (but with a memory error, I know this may not be the case). My question

Inno Setup: How to watch variables values or write to debug output?

孤人 提交于 2020-01-01 01:29:56
问题 How can I watch values of variables while debugging in Inno Setup? How can I print something to debug output? Thanks 回答1: There's currently no debug watch window, but you can simply hover the variable you want to inspect, when the debugger is stopped on a breakpoint. To print something to a debug output, use the Log procedure: procedure InitializeWizard; var Value: Integer; begin Value := 123; Log('The Value is: ' + IntToStr(Value)); end; Here is the result of the hovered Value variable from

What's your favored method for debugging MS SQL stored procedures?

↘锁芯ラ 提交于 2019-12-31 22:42:07
问题 Most of my SPs can simply be executed (and tested) with data entered manually. This works well and using simple PRINT statements allows me to "debug". There are however cases where more than one stored procedure is involved and finding valid data to input is tedious. It's easier to just trigger things from within my web app. I have a little experience with the profiler but I haven't found a way to explore what's going on line by line in my stored procedures. What are your methods? Thank you,

Recommended reading on general debugging techinques

女生的网名这么多〃 提交于 2019-12-31 22:32:29
问题 What reading would you recommend on general debugging techniques? I am more interested in principles and best practices than in specific platform solutions. For the record I mainly work with .NET (F#, C#), and dabble in Haskell and Ocaml. One of these Friday evenings we talked about debugging with my colleague on our walk home. I was surprised to learn that one can view and modify the state of live objects from the VisualStudio debugger. He also mentioned that another developer he knew, a

How large is the -Xdebug flag overhead?

老子叫甜甜 提交于 2019-12-31 22:26:55
问题 I wonder how large the performance overhead that the -Xdebug flag introduces? It's very convenient to debug production applications, but I guess it is expensive to leave running all the time? Also, is there a good way to make the already running application to listen via Debug port, without re-launching it? Thanks. 回答1: We haven't found any difference. We run all our production applications with -Xdebug. is there a good way to add Debug mode to application already running, without re-launch

How can I debug (preferably in an IDE) an MSBuild script?

与世无争的帅哥 提交于 2019-12-31 22:26:12
问题 We use MSBuild quite extensively as part of our continuous integration process, and whilst it is incredibly powerful and we can do practically all of our build, test and deployment within it (utilising some custom tasks) - we've found that debugging it using tags is a pain and cannot always provide us with enough information. I've found: http://www.wintellect.com/CS/blogs/jrobbins/archive/2007/12/03/msbuild-debuggers.aspx, but unfortunately the project seems to have disappeared from Codeplex.

Codeblocks doesn't stop at breakpoints

不羁岁月 提交于 2019-12-31 22:23:32
问题 I am trying to debug C++ project in Codeblocks, but it's not stopping at breakpoints. I read the other answers and have tried the following things so far: ( Build Options > Compiler Settings ) Produce debugging symbols is checked, strip all symbols is unchecked. No spaces/non-ascii values in my file path. Running the debug version. Debugger in ( Settings > Compiler > Toolchain Executables ) set to GDB/CDB Debugger:Default Executable path in ( Settings > Debugger > GDB/CDB Debugger:Default )

How to debug Spring AOP

依然范特西╮ 提交于 2019-12-31 22:23:06
问题 I have a problem with Spring AOP which doesn't ties an aspect to all the methods it should (in my opinion) (see this question for more about the root problem: Spring AOP ignores some methods of Hessian Service). How can I debug, what methods and instances get combined with what aspect? Is there something like a verbose flag for spring aop, which gives that information? 回答1: There seems not to be too much logging code in the Spring AOP classes, but... In case Spring AOP decides to use Cglib to

Codeblocks doesn't stop at breakpoints

北城以北 提交于 2019-12-31 22:22:14
问题 I am trying to debug C++ project in Codeblocks, but it's not stopping at breakpoints. I read the other answers and have tried the following things so far: ( Build Options > Compiler Settings ) Produce debugging symbols is checked, strip all symbols is unchecked. No spaces/non-ascii values in my file path. Running the debug version. Debugger in ( Settings > Compiler > Toolchain Executables ) set to GDB/CDB Debugger:Default Executable path in ( Settings > Debugger > GDB/CDB Debugger:Default )

Dumping a huge array in Intellij-Idea debugger

你离开我真会死。 提交于 2019-12-31 21:34:12
问题 Is there a way in Idea to dump the content of a large - very - array of ints into the clipboard ? 'copy value' on an array return nothing. 回答1: To get the value in the clipboard using copy value, you need to define a "Java Data Type Renderer" to interpret the content of your array. Right click on your array variable Select "View as->Create..." In the "Java Data Type Renderers" window, create a new entry, set "When rendering a node, use following expression" with Arrays.toString(this) . Apply,