debugging

Xdebug successfully connects to DBGP clients, but won't stop at breakpoints

那年仲夏 提交于 2019-12-29 01:40:08
问题 I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect to multiple DBGP clients (i.e. the xdebug.remote_log shows communication back and forth, and the clients themselves also show the incoming connection), but it doesn't stop at breakpoints. I have tried NetBeans, MacGDBp and also the command-line debugclient bundled with Xdebug. A typical exchange looks like: Log opened at 2010-07-20 09:33:17 -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http:/

Why am I getting this JS error?

隐身守侯 提交于 2019-12-28 22:17:44
问题 I get this JS error: jquery-1.5.1.min.js:16Uncaught TypeError: Cannot set property '_renderItem' of undefined d.d.extend._Deferred.f.resolveWithjquery-1.5.1.min.js:16 d.d.extend.readyjquery-1.5.1.min.js:16 d.c.addEventListener.A and it's from this code for the jquery UI autocomplete plugin in my application.js file: .data( "autocomplete" )._renderItem = function( ul, item ) { return $( "<li></li>" ) .data( "item.autocomplete", item ) .append( "<a>" + item.topic.name + "</a>" ) .appendTo( ul )

adb cannot find my device for Android debugging. Why?

人走茶凉 提交于 2019-12-28 18:55:12
问题 I installed Windows USB Android SDK driver for the Android Dev Phone 1 I enabled all the debugging modes and stuff on the phone. It even says...USB debugging connected. When I type adb devices , it shows me only my emulator , and not my phone. It doesn't seem to recognize my Android Phone as an adb device . Why is that? 回答1: Might be faster just to restart the adb server: adb kill-server ; adb start-server Or what I often use: adb kill-server ; adb devices When you call adb devices it

Eclipse debugging with input from console

喜欢而已 提交于 2019-12-28 18:23:10
问题 I'm trying to debug a program I wrote in C++ using Eclipse. The program includes getting input from the user but when I enter the input to the console it won't ever continue running the code (it'll keep asking for input). I can't debug without fixing this and would appreciate some help. Thank you. The code gets stuck on the while loop fgets: int main(int argc, const char**argv) { FILE* inputFile = NULL; setlocale(LC_ALL, ""); if(argc == 2){ inputFile = fopen(argv[1], "r"); if (inputFile ==

How to debug (step into) BinaryFormatter.Deserialize()?

大憨熊 提交于 2019-12-28 18:05:35
问题 My app tries to deserialize data sent by client and it fails with the following error: Exception thrown: 'System.Runtime.Serialization.SerializationException' in mscorlib.dll Additional information: Cannot get the member '<.ctor>b__0'. googling gives no results. Okay, I decided I would step into deserialization logic and try to figure out what exactly is causing this. Well, a day has passed and I'm nowhere close. I used instructions from Microsoft Reference Source website to configure Visual

Log.d and impact on performance

。_饼干妹妹 提交于 2019-12-28 14:05:10
问题 I'm not entirely sure about what I'm reading in the documentation. Is it ok to leave a bunch of log.d pieces of code scattered about, or should I comment them out so that they don't impact my app's performance. Thanks, I'm a little confused because if you read about the log object (documentation) you see this: "The order in terms of verbosity, from least to most is ERROR, WARN, INFO, DEBUG, VERBOSE. Verbose should never be compiled into an application except during development. Debug logs are

How to debug on Opera Mini?

拥有回忆 提交于 2019-12-28 13:23:08
问题 How do I debug a website that looks weird on Opera Mini? The site is working fine on any other browser. 回答1: Alas, I know of no dedicated resource on how to debug a website w/ Mini, though there are a few related articles on http://dev.opera.com that might help you. The most recent article is A developer's look at Opera Mini 5, but Making Small Devices Look Great and Designing With Opera Mini in Mind should be particularly useful as well. Generally check how a site looks in Opera Desktop and

How to debug on Opera Mini?

爷,独闯天下 提交于 2019-12-28 13:23:02
问题 How do I debug a website that looks weird on Opera Mini? The site is working fine on any other browser. 回答1: Alas, I know of no dedicated resource on how to debug a website w/ Mini, though there are a few related articles on http://dev.opera.com that might help you. The most recent article is A developer's look at Opera Mini 5, but Making Small Devices Look Great and Designing With Opera Mini in Mind should be particularly useful as well. Generally check how a site looks in Opera Desktop and

How to use debug libraries on ubuntu

蓝咒 提交于 2019-12-28 12:51:30
问题 My current problem is with libwebkitgtk-3.0-0, but I guess this problem is generic enough. My application is crashing somewhere in the webkit code. My assumption is we are doing something stupid and want to find out what. Easiest thing will be to set a breakpoint or use debug version of library. How do I get exact source code with which library was built? I am getting stack trace after it dumps the core, but line number gdb is saying do not match with those I see in the code. In other words

How to use debug libraries on ubuntu

六月ゝ 毕业季﹏ 提交于 2019-12-28 12:49:53
问题 My current problem is with libwebkitgtk-3.0-0, but I guess this problem is generic enough. My application is crashing somewhere in the webkit code. My assumption is we are doing something stupid and want to find out what. Easiest thing will be to set a breakpoint or use debug version of library. How do I get exact source code with which library was built? I am getting stack trace after it dumps the core, but line number gdb is saying do not match with those I see in the code. In other words