debugging

In Clion's debugger, how do I show the entire contents of an int array

流过昼夜 提交于 2020-01-30 14:18:07
问题 Right now it is only showing the first element of the array but I want a visual of all the elements in the array. I think Clion is using GDB. EDIT: I am referring specifically to arrays on the heap. Arrays on the stack can be visualised. 回答1: Unfortunately, CLion doesn't currently support such feature. As suggested by JetBrains employee, you can use a workaround. In Evaluate / Watches window use the following expression: (MyType[128])myArray You can use arbitrary array size; whatever works

Is there a non-installable version of Fiddler, or equivalent?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-30 14:05:48
问题 One of my clients is currently waiting for his IT department to install Fiddler on his desktop so that he can debug his web application... Apparently his desktop requires IT Admin rights to install anything. Is there a non-installable version of Fiddler, i.e. a standalone exe (additional files ok) or an equivalent program that can be run off a thumbdrive or a local folder? 回答1: No, Fiddler doesn't "Add hooks" that require administrative permissions. You can simply copy the Fiddler folder from

Is there a non-installable version of Fiddler, or equivalent?

人走茶凉 提交于 2020-01-30 14:05:08
问题 One of my clients is currently waiting for his IT department to install Fiddler on his desktop so that he can debug his web application... Apparently his desktop requires IT Admin rights to install anything. Is there a non-installable version of Fiddler, i.e. a standalone exe (additional files ok) or an equivalent program that can be run off a thumbdrive or a local folder? 回答1: No, Fiddler doesn't "Add hooks" that require administrative permissions. You can simply copy the Fiddler folder from

Pydev source file hyperlinks in Eclipse console

此生再无相见时 提交于 2020-01-30 12:04:10
问题 When a python app crashes the console displays hyperlinks to the source code where the exceptions occurred. You just click the link and your source file is opened in the Eclipse editor. I have my own exception handler and would like to put links to source files in the console when my apps crash. I have looked for info on this a few times and cannot see how to do it or if it is possible at all. It seems that it can be done in java by writing to the console in the form ':' - A listener picks

Pydev source file hyperlinks in Eclipse console

五迷三道 提交于 2020-01-30 12:01:11
问题 When a python app crashes the console displays hyperlinks to the source code where the exceptions occurred. You just click the link and your source file is opened in the Eclipse editor. I have my own exception handler and would like to put links to source files in the console when my apps crash. I have looked for info on this a few times and cannot see how to do it or if it is possible at all. It seems that it can be done in java by writing to the console in the form ':' - A listener picks

use a macro to show the stringified content of a macro

守給你的承諾、 提交于 2020-01-30 11:56:07
问题 I am writing code for an Arduino. The code starts to get long so I want to use some debugging macros, and to be able to show some debugging information on serial port. For example, I have some macros to define which serial ports I use: #define SERIAL_GPS Serial1 #define SERIAL_IRIDIUM Serial2 #define SERIAL_VN100 Serial3 How can I write a macro to show the ports I use for each one? I.e. some macro that would print on a debug serial port: Port for GPS: Serial1 Port for Iridium: Serial2 Port

i can't input number even if i use int function

淺唱寂寞╮ 提交于 2020-01-30 11:22:06
问题 def sqrt(): x = input('enter a number:' ) x= int() if x == int: a = x*x print (a) else: print ('this is not a number') this is my code, i wanted to input a number and multiply it by itself, but it didn't work out. when i run my program as; sqrt() enter a number:10 this is not a number but the code that i have written should give 'True' to the 'if' statement. any helps? 回答1: You are calling int without argument, so you get x=0 ; the other problem is, that a value of type int is never equal to

What changed in xcode7 debugger that I can no longer view variables with “po” / Swift

假装没事ソ 提交于 2020-01-30 05:28:56
问题 ok what changed in xCode7 / Swift that I can no longer use "po frame" to view the contents of a CGRect anylonger? The print statment works just fine in the code. How come I can't view that in the debugger console like I used to? var frame = self.myLabel.frame frame.origin.x = self.startingFrame.origin.x + translation.x frame.origin.y = self.startingFrame.origin.y + translation.y print(frame) self.myLabel.frame = frame yet in the debugger if I break on the self.myLabel.frame = frame statement

How to get backtrace information from exception in googletest?

核能气质少年 提交于 2020-01-29 21:53:23
问题 I'm trying to do some semi test driven design, and occasionally when I implement a new feature, it will have an exception somewhere. All gtest tells me is what the exception is, and does not give me any backtrace information. If I run gdb --args --gtest_catch_exceptions=0, it will stop at the test with the exception but not have any backtrace information. It simply states: [ RUN ] TESTNAME.test_case EXCEPTION: exception description[Inferior 1 (process 30528) exited with code 0377] (gdb) bt No

How to get backtrace information from exception in googletest?

吃可爱长大的小学妹 提交于 2020-01-29 21:48:53
问题 I'm trying to do some semi test driven design, and occasionally when I implement a new feature, it will have an exception somewhere. All gtest tells me is what the exception is, and does not give me any backtrace information. If I run gdb --args --gtest_catch_exceptions=0, it will stop at the test with the exception but not have any backtrace information. It simply states: [ RUN ] TESTNAME.test_case EXCEPTION: exception description[Inferior 1 (process 30528) exited with code 0377] (gdb) bt No