debugging

VBA Debugger shows only 256 elements of a collection

三世轮回 提交于 2020-02-16 05:49:27
问题 the title explains my problem. Im working on an excelmakro and my questions is, is there an option that the debugger shows all elements like it does with an array? And if not, is the only workaround the storage of my classobjects in an array after inflating the collection? I appreciate your help. 回答1: You could use debug.print and write the output into the immediate window and bypass the limit that way. I am almost certain that there is no way to increase that limit, but maybe someone else

Lua Debugging - Detect when the value of a variable changes

北慕城南 提交于 2020-02-12 05:23:26
问题 Is it possible to detect when the value of a variable has changed using the lua debug library. Something like A callback function which would give details like the function in which the value was changed, previous value, etc. Is such a thing possible? I read about hooks, but I'm not sure hooks can be set to variables. 回答1: If you don't mind using a debugger, then some debuggers allow you to set Watch expressions, which will be triggered when the condition in the expression is true. I'll show

Program only crashes as release build — how to debug?

这一生的挚爱 提交于 2020-02-08 21:37:12
问题 I've got a "Schroedinger's Cat" type of problem here -- my program (actually the test suite for my program, but a program nonetheless) is crashing, but only when built in release mode, and only when launched from the command line. Through caveman debugging (ie, nasty printf() messages all over the place), I have determined the test method where the code is crashing, though unfortunately the actual crash seems to happen in some destructor, since the last trace messages I see are in other

segfault on jump from PLT

非 Y 不嫁゛ 提交于 2020-02-06 07:41:06
问题 I am trying to find the cause of a segfault, and narrowed it to the PLT using gdb's btrace. The segfault occurs during a jump from the PLT to the GOT, which I interpret to signify that the PLT became corrupted during execution. Based on the analysis presented below, is this interpretation correct? What are likely culprits for corruption of the PLT? Stack overflow? I believe that installing a watchpoint on the GOT address could be helpful in this instance. Would watch -l 0x55555562f048 be the

Print stack trace when “Can't locate object method x via package y” (Perl)

杀马特。学长 韩版系。学妹 提交于 2020-02-04 07:25:52
问题 Chances are I invoke method x on an object of the wrong type, but it's way down in my call stack, so it's not obvious. So: is there a way of always printing a full stack trace when this error occurs? 回答1: To always print a full stack trace add use Carp::Always; or run the program with perl -MCarp::Always script or, with bash PERL5OPT=-MCarp::Always script what sets up the PERL5OPT environment variable and runs the (executable) script . For one, this allows the shebang ( #! ) line in the

Print stack trace when “Can't locate object method x via package y” (Perl)

青春壹個敷衍的年華 提交于 2020-02-04 07:25:20
问题 Chances are I invoke method x on an object of the wrong type, but it's way down in my call stack, so it's not obvious. So: is there a way of always printing a full stack trace when this error occurs? 回答1: To always print a full stack trace add use Carp::Always; or run the program with perl -MCarp::Always script or, with bash PERL5OPT=-MCarp::Always script what sets up the PERL5OPT environment variable and runs the (executable) script . For one, this allows the shebang ( #! ) line in the

How to break into debugger within a jUnit test case?

一笑奈何 提交于 2020-02-04 03:08:51
问题 I'm debugging a unit test in a large java project. I need to run 'ant test ...' to launch the test suite. So it's difficult for me to launch it from the IDE. Is it possible to call some function like Debugger.Break() in C# to break into the debugger if it's attached to any debugger? 回答1: If I am understanding your question correctly, you can use java's remote debugging by setting these 2 jvm parameters: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 And for debugging

How to debug into internal c code of PHP?

≯℡__Kan透↙ 提交于 2020-02-03 08:29:31
问题 Has anyone here tried it or is it possible? I've been using PHP for quite a few years but never know exactly the underlying c scripts. Is there a way to go into it? 回答1: I've done a bit of hacking on Zend PHP. I find it to be overly clever , some people go as far as calling it deliberately obfuscated in plain view . The source code to PHP is a mind altering (or breaking) substance, depending on how good you are at deciphering very cryptic macros. That's my impression of the core. Writing

View object/property state in Xcode while debugging

本秂侑毒 提交于 2020-02-03 04:44:01
问题 So I'm new to Xcode, working on an iOS project and I'm having a heck of a time with the most fundamental debugging. Specifically I need to be able to view the state of objects as I step through the code (that's not crazy is it?), but I can't for the life of me figure out how to do this in Xcode. Whenever I try, it seems the furthest I get is a memory address that can't be expanded to show its objective contents. Nor can I figure out any way to even manually dereference the pointer in the

Debugging a working program on Mathematica 5 with Mathematica 7

前提是你 提交于 2020-02-02 11:24:24
问题 I'm currently reading the Mathematica Guidebooks for Programming and I was trying to work out one of the very first program of the book. Basically, when I run the following program: Plot3D[{Re[Exp[1/(x + I y)]]}, {x, -0.02, 0.022}, {y, -0.04, 0.042}, PlotRange -> {-1, 8}, PlotPoints -> 120, Mesh -> False, ColorFunction -> Function[{x1, x2, x3}, Hue[Arg[Exp[1/(x1 + I x2)]]]]] either I get a 1/0 error and e^\infinity error or, if I lower the PlotPoints options to, say, 60, an overflow error. I