debugging

Android Studio can't run application on device: stuck on “Waiting for process: <project>”

牧云@^-^@ 提交于 2019-12-30 08:08:35
问题 When trying to debug my application on my Samsung Galaxy S4, I get this output: Waiting for device. Target device: samsung-samsung_sgh_i337-8c8aa2c7 Uploading file local path: C:\Users\awebberley\AndroidStudioProjects\Contacts\app\build\apk\app-debug-unaligned.apk remote path: /data/local/tmp/org.intracode.contacts Installing org.intracode.contacts DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/org.intracode.contacts" pkg:/data/local/tmp/org.intracode.contacts Success Waiting for

Finding Javascript-Applied Inline Styles to Debug Javascript

China☆狼群 提交于 2019-12-30 08:03:43
问题 SCENARIO: I am taking over management of a website where the former web developer has unfortunately spread out many relevant functions over many long JS files. It is hard for me to find where an inline CSS style is coming from in the JS or what function is applying this style directly to the element. QUESTION: Is there a method of reverse engineering an element's inline styles to see where they are coming from? 回答1: A possible way is to add a DOM breakpoint in Chrome Dev Tools For that to

Debugging Android App on Device

主宰稳场 提交于 2019-12-30 07:27:11
问题 I know there are many questions about this but none of them helped my situation.I'm running Ubuntu 11.10 and I'm trying to debug an app on my LG phone. I followed this guide: http://developer.android.com/guide/developing/device.html I enabled USB debugging on my phone,set the project to debuggable in the manifest, and edited the /etc/udev/rules.d/51-android.rules rules file. Here is the contents of the file: SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" 1004 is the

Xcode equivalent of Visual Studio's “Find Source”

倖福魔咒の 提交于 2019-12-30 07:09:05
问题 I am developing on a Qt project, and have installed Qt from their installer onto my computer. In Visual Studio it is simple to debug-step into Qt sources: when I enter a function in an unknown file, it will open a file browser to let me locate the original Qt source code. Is there an equivalent function in Xcode or LLDB? 回答1: The debug information records the location of the QT source files when they were built. You can find this information by doing: (lldb) image lookup -va main Address:

How do I debug a Rails application in Aptana Studio 3?

眉间皱痕 提交于 2019-12-30 06:48:26
问题 Does Aptana Studio include debugging for Rails apps just as RubyMine does with breakpoints and everything? I'm using Aptana Studio 3.0.5 and haven't been able to find how to get this working. 回答1: Aptana Studio 3+ does have Ruby debugging. Other than breakpoints in HAML files misbehaving somewhat, I've been able to use this without any problems. However, you must make certain that you have installed the gem ruby-debug-ide (you can install it with the command: gem install ruby-debug-ide ). To

Visual Studio Breakpoint Macro to modify a value?

元气小坏坏 提交于 2019-12-30 06:38:18
问题 I'm debugging an application (C++), and I've found a point in the code where I want to change a value (via the debugger). So right now, I've got a breakpoint set, whereupon I do: Debugger reaches breakpoint I modify the variable I want to change I hit F5 to continue running lather, rinse, repeat It's hitting this breakpoint a lot, so I would like to automate this. I would like to set the Breakpoint to run a macro, and continue execution. However, I have no experience writing VisualStudio

Phonegap - Javascript debugging in Xcode

走远了吗. 提交于 2019-12-30 06:37:10
问题 I am working on a phonegap based project. I'd like to use some debug tools, to be able to debug some variables etc into XCode console, etc. Now, I've found, that in order to do this, I need to call function console.log. The problem is, however, when running the application in simulator no debug info is displayed in XCode console... I am using phonegap version 0.9.3, what am I doing wrong? Thanks for an answer 回答1: This feature was completed very recently (two days ago), and is not included in

Multiple service processes (System.ServiceProcess.ServiceBase) in one Windows Service

ぐ巨炮叔叔 提交于 2019-12-30 06:32:46
问题 I've got two service processes (derived from System.ServiceProcess.ServiceBase ) MyService1 and MyService2 . I'm trying to run them both in the Main() of a Windows Service's Programm.cs . static void Main() { ServiceBase[] servicesToRun = { new MyService1(), new MyService2() }; ServiceBase.Run(servicesToRun); } In the OnStart methods of both MyService1 and MyService2 I write to a log file so I can tell they are running. The system builds fine and I can install the service. But only MyService1

Multiple service processes (System.ServiceProcess.ServiceBase) in one Windows Service

核能气质少年 提交于 2019-12-30 06:31:09
问题 I've got two service processes (derived from System.ServiceProcess.ServiceBase ) MyService1 and MyService2 . I'm trying to run them both in the Main() of a Windows Service's Programm.cs . static void Main() { ServiceBase[] servicesToRun = { new MyService1(), new MyService2() }; ServiceBase.Run(servicesToRun); } In the OnStart methods of both MyService1 and MyService2 I write to a log file so I can tell they are running. The system builds fine and I can install the service. But only MyService1

Is it possible to use gdb and qemu to debug linux user space programs and kernel space simultaneously?

筅森魡賤 提交于 2019-12-30 06:29:07
问题 So far, with gdb + qemu, I can step into/over linux kernel source code. Is it possible to debug the user space programs simultaneously? For example, single step a program from user space to kernel space so I can observe the changes of registers on the qemu monitor by issuing info registers ? 回答1: I achieve it by using the gdb command add-symbol-file to add userspace programs debugging information. But you must know these programs loading addresses. so to be precise, you have to launch the