debugging

Eclipse fails to debug

荒凉一梦 提交于 2020-01-06 18:39:12
问题 I cannot debug a java aplication inside eclipse. I'm using: Windows 7 64bit Java 6_45 64 bit (tried JDK and JRE) Eclipse Kepler 64 bit eclipse always hangs while saying Constructing command line.. I found this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=195185) that appears to closed for a long time. This is the exact same behavior I'm experiencing, but cannot figure out the cause. Any help? Thanks in advance 回答1: So, after a few more experiments and reading the bug report again, I changed

Eclipse fails to debug

天涯浪子 提交于 2020-01-06 18:38:07
问题 I cannot debug a java aplication inside eclipse. I'm using: Windows 7 64bit Java 6_45 64 bit (tried JDK and JRE) Eclipse Kepler 64 bit eclipse always hangs while saying Constructing command line.. I found this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=195185) that appears to closed for a long time. This is the exact same behavior I'm experiencing, but cannot figure out the cause. Any help? Thanks in advance 回答1: So, after a few more experiments and reading the bug report again, I changed

How to debug a blackberry verification error?

拈花ヽ惹草 提交于 2020-01-06 16:22:58
问题 All I get is: "Module 'my-app' has verification error 'xxxx' at offset '1646' Which according to blackberry, contains information that is of no use to third party developpers. I looked in the buglog (with the 'catfail' option), and all I found was a method on which it crashed, not why. funny thing is, when I remove this method from my application, it still logs the same method for causing the error. It's kind of strange. extra info: My app contains LWUIT, and the blackberryport I've also read

How to debug Android project

梦想的初衷 提交于 2020-01-06 16:18:52
问题 I'm new to the Android framework (using Eclipse) and I have a question about debugging. Recently I did this error in an activity: // The installation button Button button = (Button) findViewById(R.id.preparationInstallButtonID); button.setOnClickListener(this); setContentView(R.layout.preparation); i.e. I tried to add an onclick-event prior the layout had been rendered. This crashed the program, "Sorry, the application xxx has stopped unexpectedly". Running it again, with debug-mode, Eclipse

Reliable Linux kernel timestamps (or adjustment thereof) with both usbmon and ftrace?

北战南征 提交于 2020-01-06 14:52:46
问题 I'm trying to inspect a kernel module that utilizes usb, and so from the module itself I'm writing a message to ftrace using trace_printk ; and then I wanted to inspect when does a USB Bulk Out URB Submit appear in the system after that. The problem is that on my Ubuntu Lucid 11.04 (kernel 2.6.38-16), there are only local and global clocks in ftrace - and although their resolution is the same (microseconds) as the timestamps by usbmon, their values differ significantly. So not knowing any

view file output while debugging

↘锁芯ラ 提交于 2020-01-06 14:38:11
问题 The problem with redirecting the output to a file in debug mode is that I can not view the content of file (size is zero) until the program finish. With this usages: FILE *f; f = fopen("log.txt", "w"); fprintf(f, "cycle =%d\n", c); while I am debugging, I want to view the track "cycle =" in the file right after stepping out "fprintf" statement. Is there any way to do that? 回答1: You can try to put fflush(f); after fprintf() function call, which will make the data be written immediately. 回答2:

Eclipse Java EE debug crashes

扶醉桌前 提交于 2020-01-06 14:15:54
问题 I keep getting an error of org.eclipse.jdi.TimeoutException while waiting for packet -- occurred creating step request . When that happens I need to restart Eclipse and start all over which is very unproductive. I tried changing the Timeout settings in options but that didn't seem to help. Any ideas? 来源: https://stackoverflow.com/questions/13832879/eclipse-java-ee-debug-crashes

Eclipse Java EE debug crashes

妖精的绣舞 提交于 2020-01-06 14:15:00
问题 I keep getting an error of org.eclipse.jdi.TimeoutException while waiting for packet -- occurred creating step request . When that happens I need to restart Eclipse and start all over which is very unproductive. I tried changing the Timeout settings in options but that didn't seem to help. Any ideas? 来源: https://stackoverflow.com/questions/13832879/eclipse-java-ee-debug-crashes

Keep xcode debugger from stepping out of file

梦想与她 提交于 2020-01-06 12:44:24
问题 Every so often, when I'm debugging and stepping through a thread, Xcode pulls me into another thread (that I'm guessing is executing all the other stuff involved in setting up views etc.). the problem is that this doesn't help me, as I just want to observe the code I've written myself. Is there any way to prevent this? 回答1: If you use "step over" you normally won't see this view, I only ever see it when I do "step into" on lines with a compound statement. What you are seeing is not your code,

Keep xcode debugger from stepping out of file

时间秒杀一切 提交于 2020-01-06 12:44:19
问题 Every so often, when I'm debugging and stepping through a thread, Xcode pulls me into another thread (that I'm guessing is executing all the other stuff involved in setting up views etc.). the problem is that this doesn't help me, as I just want to observe the code I've written myself. Is there any way to prevent this? 回答1: If you use "step over" you normally won't see this view, I only ever see it when I do "step into" on lines with a compound statement. What you are seeing is not your code,