debugging

Process with an ID is not running

纵然是瞬间 提交于 2020-02-24 19:04:35
问题 I have an issue when I debug my application it says "process with an ID is not running in visual studio 2013." Every time it comes with different process number. I tried deleting the IISEXPRESS folder then set environment variable to 1 . But still got the error. 回答1: Resolution I found; Head to %userprofile%\documents\IISExpress\Config directory Delete all files within that folder. Restart visual studio and works like a charm. 回答2: I had the same issue using VS 2017. This worked for me. I

Process with an ID is not running

笑着哭i 提交于 2020-02-24 18:59:48
问题 I have an issue when I debug my application it says "process with an ID is not running in visual studio 2013." Every time it comes with different process number. I tried deleting the IISEXPRESS folder then set environment variable to 1 . But still got the error. 回答1: Resolution I found; Head to %userprofile%\documents\IISExpress\Config directory Delete all files within that folder. Restart visual studio and works like a charm. 回答2: I had the same issue using VS 2017. This worked for me. I

How do I display a byte array as a char array in the Eclipse Java debugger?

六眼飞鱼酱① 提交于 2020-02-24 05:54:26
问题 I want to view a byte array in the Eclipse (Helios Release, build id: 20100617-1415) Java debugger as a char array? Is that possible? How? For example, I want to display this: ...as: '\0', '0', 'G', '\22', etc. 回答1: Set a breakpoint after the byte array. Select the byte array and click watch. It will appear in the Expressions view. Click on the expression, mine is called aBytes, and click edit Watch Expressions. Enter the following expression: new String(aBytes).toCharArray(); Caveat - it

Incredible number of logical threads; windbg can't see them?

佐手、 提交于 2020-02-22 07:51:32
问题 I've got a process that is showing ~4,294,965,900 "current logical threads" (according to the performance counters) and ~400 physical threads. I've created a memory dump using ADPlus (-hang), and windbg (!threads) only shows me the physical threads. How do I find out where all these logical threads are coming from? 回答1: How do I find out where all these logical threads are coming from? they aren't. They don't exist. You simply can't have 4 billion threads of any kind, unless you're running on

How do I fix “Could not connect to remote process” while trying to debug the application?

六眼飞鱼酱① 提交于 2020-02-21 10:26:19
问题 I am making a android studio project and I try to debug my application. Running the application works fine, but when I try to debug it I get this error: Could not connect to remote process. Aborting debug session. What can I do to fix the issue? 回答1: You need to restart the ADB. kill adb.exe process. how to restart ADB manually from Android Studio 回答2: Check if you have selected the right Build Variant, usually " release " comes with debuggable false Example: buildTypes { release { debuggable

How do I fix “Could not connect to remote process” while trying to debug the application?

时光怂恿深爱的人放手 提交于 2020-02-21 10:26:12
问题 I am making a android studio project and I try to debug my application. Running the application works fine, but when I try to debug it I get this error: Could not connect to remote process. Aborting debug session. What can I do to fix the issue? 回答1: You need to restart the ADB. kill adb.exe process. how to restart ADB manually from Android Studio 回答2: Check if you have selected the right Build Variant, usually " release " comes with debuggable false Example: buildTypes { release { debuggable

Chrome Javascript Debugger, when paused, won't reload page

只愿长相守 提交于 2020-02-21 09:18:05
问题 Sometimes when I'm debugging some javascript in Chrome and I have the javascript paused, if I try to reload the page, chrome instead just "continues" the debugger, stepping to next breakpoint. There doesn't seem to be any way to force the javascript to stop running completely, and let chrome just reload the page. Every press of -R or click of the reload button simply continues to the next breakpoint. My make-shift solution right now is to copy the url bar address close that tab open a new tab

How to find stack depth?

故事扮演 提交于 2020-02-20 11:50:50
问题 I want to replace following function calla with callb (Reference : Get call stack from any thread within C ) int calla() { printf("Inside calla\n"); printf("A1=%x\n",__builtin_return_address (0)); printf("A2=%x\n",__builtin_return_address (1) ); printf("A3=%x\n",__builtin_return_address (2) ); } int callb() { int i,j; j = stackdepth(); for (i=0 ; i<j ;i++) printf("%x\n",__builtin_return_address (i)); } How to find the stack depth ? 回答1: This only works with gcc , and on certain platforms. I

Debugging a program that uses SIGINT with gdb

拜拜、爱过 提交于 2020-02-19 09:34:19
问题 I frequently work with PostgreSQL for debugging, and it uses SIGINT internally for some of its inter-backend signalling. As a result when running certain backends under gdb execution tends to get interrupted a lot. One can use the signal command to make sure SIGINT is passed to the program and that it is not captured by gdb ... but then gdb doesn't respond to control-C on the command line, since that sends SIGINT . If you run: handle SIGINT noprint nostop pass gdb will complain SIGINT is used

VBA Debugger shows only 256 elements of a collection

匆匆过客 提交于 2020-02-16 05:50:11
问题 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