debugging

Visual Studio 2012: Unable to attach the process. A debugger is already attached

限于喜欢 提交于 2019-12-30 04:02:34
问题 I built solution, created application in IIS and mapped it to the application folder. It works fine. Then I go to "Attach to Process", there are two w3wp.exe processes in list, but for one of them I get error "Unable to attach the process. A debugger is already attach." I've googled it but I can't find solution for my problem. 回答1: I have installed Debug Diagnostic Tool v2.0 and as a result I have Debug Diagnostic Service which is started automatically and attached to one of w3wp processes.

F# Quality of Life Questions

廉价感情. 提交于 2019-12-30 04:00:38
问题 I started coding in F# about 2 months ago. I am greatly enjoying this programming language. I come from a C# background, and every time I need to revert back to C#, it feels so cumbersome and bloated. But there are still things I think are problematic in F#, and this is what my questions are related to: There is no auto complete like VS has for C# right ? E.g. inside a function that takes parameter aParameter, if I write aPara no auto complete comes up. Is there a functionality inside VS that

Finding the actual runtime call tree of a Java Program

三世轮回 提交于 2019-12-30 03:37:11
问题 Suppose I have a big program that consists of hundreds of methods in it. And according to the nature of input the program flow is getting changed. Think I want to make a change to the original flow. And it is big hassle to find call hierarchy/ references and understand the flow. Do I have any solution for this within Eclipse? Or a plugin? As an example, I just need a Log of method names that is in order of time. Then I don't need to worry about the methods that are not relevant with my "given

How can I abort program execution in MATLAB?

跟風遠走 提交于 2019-12-30 03:31:08
问题 How can I stop program execution in MATLAB without exiting MATLAB. I'm looking for something like exit(1) in C++. I've tried exit/quit, but they also kill MATLAB which isn't the behaviour I want. Ideally I would have used try-catch to bubble up errors, but I'm fixing up existing code and cannot do that due to a deeply nested call stack. Thanks! EDIT: I've also tried error and return , but they end up in the invoking functions catch block which isn't what I want either. I simply want to stop

Intellij IDEA debugger not working on Gradle Vert.X project

ぐ巨炮叔叔 提交于 2019-12-30 03:28:05
问题 I'm developing a project using Vert.X framework using Gradle build tool. The problem I have is that breakpoints in IntelliJ simply doesn't work in any way I've tried. Here is a run configuration for Vert.X which I use in Gradle: run { args = [ 'run', mainVerticleName, "-conf", confPath, "--redeploy=$project.ext.watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$project.ext.doOnChange" ] } So the deployment is done using Gradle , runs without any issues, IntelliJ debugger is

Only question marks in backtrace reported by gdb on ARM

这一生的挚爱 提交于 2019-12-30 03:18:09
问题 I'm trying to debug a software with gdbserver on ARM to get a backtrace of a crash. Unfortunately I get only question marks. Everywhere, I read this problem is simply related to the lack of symbols, but symbols are not stripped from my libraries. If I try to use the file command to load the symbols in the client I get: reading symbols from <path>/libQtWebKit.so.4.7.2...(no debugging symbols found)...done. and then, when the crash occurs: Program received signal SIGSEGV, Segmentation fault.

Can I debug iOS app installed from IPA archive?

六月ゝ 毕业季﹏ 提交于 2019-12-30 03:13:29
问题 I m having some problem with my app which reproduces only when i install it ad hoc, but doesn't reproduce if i just run the app from Xcode. I would like to debug this problem, but so far i m not having any luck. I m using Xcode 5.1.1. Here is what i did: 1) Go to Product->Scheme->Edit Scheme->Archive and set build configuration to Debug. 2) Code signing identity is set to iPhone Developer. 3) Generate Debug Symbols is set to Yes. 4) Go to Product->Archive and after it is archived, click

LLDB: add symbols file?

烈酒焚心 提交于 2019-12-30 03:06:24
问题 I'm trying to debug an android native app from Android Studio's native debugging using lldb. My native app contains one libmain.so that is compiled and run by Android Studio and another external libother.so compiled by me. when debugging, I am able to set breakpoints in libmain.so but not libother.so. Both shared objects are stripped but somehow Android Studio makes lldb know about the unstripped version of libmain.so. I want to do the same for libother.so. What command do I need to give lldb

LLDB: add symbols file?

烈酒焚心 提交于 2019-12-30 03:06:10
问题 I'm trying to debug an android native app from Android Studio's native debugging using lldb. My native app contains one libmain.so that is compiled and run by Android Studio and another external libother.so compiled by me. when debugging, I am able to set breakpoints in libmain.so but not libother.so. Both shared objects are stripped but somehow Android Studio makes lldb know about the unstripped version of libmain.so. I want to do the same for libother.so. What command do I need to give lldb

StackTrace/StackFrame don't return expected info in a production environment

大兔子大兔子 提交于 2019-12-30 01:26:49
问题 I use the following method in my ASP.NET web application to receive the stack trace for an exception: public static void getStackTraceInfo(System.Diagnostics.StackTrace trace) { for (int i = 0; i < trace.FrameCount; i++) { int nLine = trace.GetFrame(i).GetFileLineNumber(); int nCol = trace.GetFrame(i).GetFileColumnNumber(); string methodName = trace.GetFrame(i).GetMethod().Name; } } try { } catch(Exception ex) { getStackTraceInfo(new System.Diagnostics.StackTrace(ex, true)); } It gives me