debugging

Can GDB change the assembly code of a running program?

放肆的年华 提交于 2019-12-29 04:47:27
问题 I want to add some extra funcionality to /bin/ls. So I started it on gdb and added a breakpoint at the beginning. Now question is: how can I change the code of a running program in memory? I can see the assembly code, but I'm not able to modify. How can I do it? On Windows I can easily do this with olldbg for example. How about on Linux? (I know that doing this I will only change the code of the process in memory. So then I can dump memory to a file, and then I'll have my changes saved in a

Ultimate guide to Debug in Delphi

跟風遠走 提交于 2019-12-29 04:47:09
问题 Is there a complete resource for debugging in Delphi that instructs on how to use all the IDE debugging tools? There used to be a guide from Marco Cantù but it was updated to Delphi 5 if I am not wrong. May you please redirect me to a complete resource updated at least to D2009 (better if XE). 回答1: IMO the official documentation on debugging is comprehensive: Debugging Applications and Debugging Applications. AFAICS the two sites have similar content but the latter may be more up to date. I

jQuery fadeIn on position:absolute causes z-index issue

ぐ巨炮叔叔 提交于 2019-12-29 04:40:48
问题 Technically I'm using fadeToggle() but they're cousins... basically my issue is that I have an absolutely positioned div which I am using slideToggle() on but the Z-index is not being set until the animation completes. The result is that during the fade the text in a neighboring div (which has a lower z-index value than the one fading in) appears "on top of" the fading in div with a higher z-index. Is anyone familiar with this quirk? Know of any workarounds? EDIT : Allow me to clarify: when

VS 17 breaking on all exceptions

狂风中的少年 提交于 2019-12-29 04:37:26
问题 Visual Studio 2017 is (kind of suddenly) breaking on all exceptions. That means, if I deactivate them in the exceptions settings (pressing CTRL + ALT + E while debugging), the debugger still breaks on them. I don't know wether this is just a bug of VS I can't change and therefore have to live with, or wether there is a simple solution for it. This is the exception settings window: and this the exception VS breaks on: By the way, I also tried that beautiful minus (nothing happens if I press it

View and change sessions variables in a browser

一个人想着一个人 提交于 2019-12-29 04:34:05
问题 Debugging a PHP program, is there any add-on/plug-in for browser which I can view sessions variables (those PHP $_SESSION["foobar"] )? Best if I can change the value in the variables. 回答1: There is no way to manipulate the values stored in sessions from the client side. That's one of the main reasons you'd use a session over a cookie - YOU control the data. With cookies, the user can manipulate the data. The only way to access/manipulate session data from the client side would be with an Ajax

How skip line in Intellij idea debug?

旧街凉风 提交于 2019-12-29 04:29:07
问题 Suppose I have java code like this (only as Example): public void someMethod(){ int a = 3; int b = 2; // <-- stay debug here a = b + 2; System.out.prinln(a); } It is possible to skip execution of line "int a = b+2;" and go immidiatly to "System.out.prinln(a);"? P.S. I use Intellij Idea 12. 回答1: It's not possible with the debugger to not execute parts of the code. It is however possible to execute extra code and change values on variables so if you need to exclude one row from execution during

Viewing the console log in iOS7

两盒软妹~` 提交于 2019-12-29 04:14:46
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Viewing the console log in iOS7

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 04:14:11
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Running a program in Debug mode is incredible slow

自作多情 提交于 2019-12-29 02:47:06
问题 Since recently it's much slower running a program in Debug mode in Eclipse Galileo. I'm not aware of any changes. Do you know what could be the cause? Running it normally is not a problem. 回答1: Another "debugging break" is the use of method entry/exit breakpoints. Did you try to remove all breakpoint definitions once? Sometimes i think Eclipse is getting out of synch with some of its internal/displayed state. Perhaps you should try to setup a new (not copy) of your workspace. This sometimes

Debugging with webpack, ES6 and Babel

爷,独闯天下 提交于 2019-12-29 02:33:10
问题 This seems like something that should have been relatively simple to achieve, but alas. I have ES6 class: 'use strict'; export class BaseModel { constructor(options) { console.log(options); } }; and root module that uses it: 'use strict'; import {BaseModel} from './base/model.js'; export let init = function init() { console.log('In Bundle'); new BaseModel({a: 30}); }; My target is: pass the above through Babel, to get ES5 code pack the modules with webpack be able to debug the result After