debugging

netbeans 6.9.1 + rails 3 + ruby 1.9.2p0 debugging

扶醉桌前 提交于 2020-01-10 10:43:15
问题 I'm running OpenSuSE 11.3 and am having problems debugging rails3 application in NetBeans 6.9.1 (ruby 1.9.2p0, rails 3.0.3, rvm). I have installed ruby-debug19, ruby-debug-ide19 Changed Gemfile, so that the line 'gem ruby-debug19' is not commented out Ran 'bundle install' When I ran 'ruby s --debugger' in console I got the following: tux@linux-hby6:~/prg/ruby/rail3-sqlite> rails s --debugger => Booting WEBrick => Rails 3.0.3 application starting in development on http://0.0.0.0:3000 => Call

Tool for debugging hangs in java application

試著忘記壹切 提交于 2020-01-10 10:16:51
问题 I've got a java application that half the time just hangs, and the other half the JVM crashes. Is there a tool I can use to see what's going on that makes it hang and/or crash? I'm using CentOS 5.6 回答1: There are two different cases. Application crash: Was that an OOM? NPE? What was the exception? If there was jvm crash you will see hs_err_.log (http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf) Looking at the file you may see if your own JNI caused a crash or JVM bug. Application Hang: I

Tool for debugging hangs in java application

孤街醉人 提交于 2020-01-10 10:16:06
问题 I've got a java application that half the time just hangs, and the other half the JVM crashes. Is there a tool I can use to see what's going on that makes it hang and/or crash? I'm using CentOS 5.6 回答1: There are two different cases. Application crash: Was that an OOM? NPE? What was the exception? If there was jvm crash you will see hs_err_.log (http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf) Looking at the file you may see if your own JNI caused a crash or JVM bug. Application Hang: I

Python: memory usage statistics per object-types (or source code line)

僤鯓⒐⒋嵵緔 提交于 2020-01-10 10:09:44
问题 I am doing some heavy calculations with Python (using OpenCV and Numpy) and in the end, I end up with a lot of memory usage (>1GB) whereby all refs should be gone and I only have the end-result (which should not be more than a few MB). To debug this, it would be nice if I could get some stats somehow which show me how much object instances there are of what type, ordered by the total amount of memory they take (per object class). Or even nicer: Not per object class but per source code line

Python: memory usage statistics per object-types (or source code line)

依然范特西╮ 提交于 2020-01-10 10:09:23
问题 I am doing some heavy calculations with Python (using OpenCV and Numpy) and in the end, I end up with a lot of memory usage (>1GB) whereby all refs should be gone and I only have the end-result (which should not be more than a few MB). To debug this, it would be nice if I could get some stats somehow which show me how much object instances there are of what type, ordered by the total amount of memory they take (per object class). Or even nicer: Not per object class but per source code line

How much information do pdb files contain? (C# / .NET)

匆匆过客 提交于 2020-01-10 09:49:49
问题 Is is wise to redistribute the pdb files along with a commercial application? Occasionally, I'm using the stack trace to get a more detailed error reporting logs from the deployed applications; can this functionality be achieved without relying to those files? Also, how much hints of the original source code does these files contain? Would it be easier to reverse-engineer my application using it? 回答1: It basically adds information for: All non-public types, interfaces, structures, classes

Xcode 3.2 Debug: Seeing whats in an array?

♀尐吖头ヾ 提交于 2020-01-10 08:22:27
问题 Whilst debugging in Xcode_3.1.2 I am pretty sure I could see the contents of my NSString arrays. However after upgrading to 3.2 I only see the following ... I know I can print the object in (gdb) using "po planetArray" or simply click in the debugger and "print description to console" I am just curious, as I am sure it worked prior to upgrading. Anyone know anything about this? cheers gary edit: data formatters is on and it shows what you see above ... 回答1: This is because GDB acts as if the

Xcode 3.2 Debug: Seeing whats in an array?

£可爱£侵袭症+ 提交于 2020-01-10 08:20:08
问题 Whilst debugging in Xcode_3.1.2 I am pretty sure I could see the contents of my NSString arrays. However after upgrading to 3.2 I only see the following ... I know I can print the object in (gdb) using "po planetArray" or simply click in the debugger and "print description to console" I am just curious, as I am sure it worked prior to upgrading. Anyone know anything about this? cheers gary edit: data formatters is on and it shows what you see above ... 回答1: This is because GDB acts as if the

How to Debug Variables in Smarty like in PHP var_dump()

僤鯓⒐⒋嵵緔 提交于 2020-01-10 06:20:09
问题 I have some variables inside a template and I don't know where I assigned them. I need to know what is inside a particular variable; for instance, say I have a variable in smarty called member . I tried with {debug} but it didn't work, and no popup was shown. How can I output/debug smarty variables using something like var_dump() inside the templates? 回答1: You can use {php} tags Method 1 (won't work in Smarty 3.1 or later): {php} $var = $this->get_template_vars('var'); var_dump($var); {/php}

Run debugger on javaFX project in android

人走茶凉 提交于 2020-01-10 05:55:29
问题 I am trying to rebuild an old javafx project on android. Currently I am using javafxports to do so. The problem is I can't debug it, this is how the project hierarchy looks: The application is started from DisplayClient . So far I am able to log messages using the device monitor. Can you please tell me if it is possible to attach a debugger and if it is how? If any further information is needed I would be happy to give it. 回答1: You can easily attach a debugger to your IntelliJ IDE while