debugging

What is the number next to the method name in a stack trace?

不打扰是莪最后的温柔 提交于 2020-01-01 05:40:13
问题 I have a simple question, I suppose, but I cannot find anything. What's the number at the end of line 6, + 429 ? 回答1: It means that the return address for stack frame 6 is 429 bytes past the start of the -[#### tableView:cellForRowAtindexPath:] function. It might be inside that function, or it might be past the end of the function but not inside any other known function. UPDATE In order for the symbolicator to turn those return addresses into line numbers, you must have the .dSYM file that

How do I debug a native code project from inside a managed code project? C++/C#

倾然丶 夕夏残阳落幕 提交于 2020-01-01 05:36:15
问题 How do I debug a native code project from inside a managed code project? I am using C# to call C++ code and need to debug the C++ code. Otherwise, I must exit out of the project, open the C++ project, create a tester and then debug the code. This is horrible. 回答1: Add your c++ project to the solution containing your C# code In the C# project properties pages, under the debug tab Check "Enable unmanaged code debugging" If that doesn't work you also need to open the Options dialog from either

Use C# attribute to track function call, variables, and return value?

拜拜、爱过 提交于 2020-01-01 05:31:05
问题 In Python, I can use decorators to trace the function call, its variables and return values. It is very easy to use. I just wonder can C# do the same thing? I find out there is a sample code of CallTracing Attribute online. However, it didn't show the result I expected. Does C# attributes have similar concepts as python's decorator? Thanks you and Best Regards! [AttributeUsage(AttributeTargets.Method | AttributeTargets.ReturnValue | AttributeTargets.Property, AllowMultiple = false)] public

Analysing crash dump in windbg

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 05:26:05
问题 I am using a third party closed source API which throws an exception stating that "all named pipes are busy". I would like to debug this further (rather than just stepping through) so I can actually learn what is happening under the covers. I have taken a dump of this process using WinDbg. What commands should I now use to analyse this dump? Thanks 回答1: You could start doing as follows to get an overview of the exception: !analyze -v Now you could load the exception context record: .ecxr And

mongodb: how to debug map/reduce on mongodb shell

筅森魡賤 提交于 2020-01-01 05:02:12
问题 I am new to MongoDB, I am using map/reduce. Can somebody tell me how to debug while using map/reduce? I used "print()" function but on MongoDB shell, nothing is printed. Following is my reduce function: var reduce = function(key, values){ var result = {count: 0, host: ""}; for(var i in values){ result.count++; result.host = values[i].host; print(key+" : "+values[i]); } return result; } when I write the above function on shell and the press Enter after completing, nothing gets printed on the

Android NDK debugging: armeabi-v7a not working

社会主义新天地 提交于 2020-01-01 04:55:14
问题 Eclipse / Cygwin NDK 8c Building a shared library I can't get gdbserver to start anymore after switching to armeabi-v7a. I've searched online for hours but can't find a topic that deals specifically with armeabi-v7a debugging issues. I have no choice to switch to armeabi-v7a due to using a third party library which depends on it. Without it, I get these kind of errors: D:\TEMP\ccnnGAqD.s:10427: Error: selected processor does not support Thumb mode `ldrex r6,[r3]' D:\TEMP\ccnnGAqD.s:10429:

Attach to process in VS2010 express using a web site. Is it possible?

為{幸葍}努か 提交于 2020-01-01 04:46:10
问题 I have read this article but it applies to web projects with a .csproj... What about a 'web site'? http://www.ninjatrader.com/support/forum/showthread.php?t=15671 People at work here tell me to just response.write my way to debug the web sites but I really miss the attach to process that is in the professional edition of vs2010.. or maybe I have to get used to response.write debugging? (Reason I am not debugging is ektron 8.0 does not compile is vs2010.. so I must attach to process.. or use

What to do, if debug behaviour differs from normal execution? [closed]

元气小坏坏 提交于 2020-01-01 04:38:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . I have a problem with debugging sessions. My program executes very well in a debug session but if I start a normal run, it behaves completely different. The problem is, that I cannot say, why it acts different. One possible reason is the slower execution time because you alway

debugInfoEnabled for Angular 1.2

别说谁变了你拦得住时间么 提交于 2020-01-01 04:27:06
问题 Angular 1.3 introduced a new debugInfoEnabled() method that can provide a boost in performance if called with false in the application config function: myApp.config(['$compileProvider', function ($compileProvider) { $compileProvider.debugInfoEnabled(false); }]); Also, Angular 1.3 dropped IE8 support. And this is a problem for me, my application have to run on IE8. Hence, I cannot upgrade to angular 1.3 and have to live with 1.2. Is there a way to achieve the same functionality with angular 1

How to write to a debug console in VB6?

馋奶兔 提交于 2020-01-01 04:26:10
问题 I am new to VB. I want to test some old VB code, but I need the ability to print to the console to be able to test certain values that are set in the code. How to print to the console from VB? 回答1: Use debug.print. But there is no console on a VB6 application, that will print to the debug window. 回答2: This isn't expected to be the accepted answer because Debug.Print is the way to go for IDE testing. However just to show how to use the standard I/O streams easily in VB6: Option Explicit '