debugging

Stepping through the GUI in Java [closed]

折月煮酒 提交于 2020-01-11 04:56:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . We are working on a Java program with a GUI and we are looking for a tool that shows us which parts of code are executed as we click on the buttons in the GUI. Any suggestions ? Thanks in advance 回答1: Eclipse with debug mode can do that, you just need to put break points in your listeners and click on the

JPA 2.0 (logging and tracing through) with Glassfish 3.0.1 and NetBeans 6.9.1:

我的未来我决定 提交于 2020-01-11 04:46:09
问题 I am using JPA 2.0 ( EclipseLink provider) with Glassfish v3.0.1 and NetBeans 6.9.1 and am NOT able to see the queries and other logging information from JPA 2.0. Essentially I want to be able to see all the SQL statements which are being generated by JPA and other related debugging information... Has anyone successfully been able to configure the logging to provide such feedback? I've tried several things to no avail... Any help would be greatly appreciated. Thanks much. 回答1: What eventually

How to script the java debugger command-line tool (jdb)?

落花浮王杯 提交于 2020-01-11 04:06:06
问题 How can I drive the debugging session with some scripting language like ruby? Is there any easier options than using Expect or some similar module with a scripting language? 回答1: You may be able to use JRuby to drive your own debugger via the JPDA API. 回答2: Check out jdiscript; it's a thin scripting frontend for the JDI that can be used with Java, JRuby, or any other jvm language. 来源: https://stackoverflow.com/questions/630044/how-to-script-the-java-debugger-command-line-tool-jdb

Debugging in GWT Super Dev Mode?

本小妞迷上赌 提交于 2020-01-11 02:31:46
问题 So far, debugging in GWT super dev mode seems to be a real pain. If there are any errors, there is no stack trace, just a cryptic message given in the chrome console. Is there a way to get all errors to print a stack trace, like in the dev mode? I already have source maps on I believe, since if I go to Sources in Chrome's dev tools, I can see the source code of my java classes. 回答1: GWT.setUncaughtExceptionHandler lets you set an exception handler, which will handle all exceptions. You can

Crash dump - WinDbg - force PDB files to match doesn't work?

半城伤御伤魂 提交于 2020-01-11 02:04:37
问题 I have a crash dump for a customer's application built with a very old version of our dll (release build, don't have original symbols) that I've been analyzing in WinDbg. In order to get more information, I rebuilt the dll in release mode, with symbols this time, using the same compiler version and I believe the same settings as when the dll was originally built. I added the symbol file to my symbol path, but the WinDbg extension !itoldyouso tells me the module in the dump doesn't match the

Crash dump - WinDbg - force PDB files to match doesn't work?

陌路散爱 提交于 2020-01-11 02:04:10
问题 I have a crash dump for a customer's application built with a very old version of our dll (release build, don't have original symbols) that I've been analyzing in WinDbg. In order to get more information, I rebuilt the dll in release mode, with symbols this time, using the same compiler version and I believe the same settings as when the dll was originally built. I added the symbol file to my symbol path, but the WinDbg extension !itoldyouso tells me the module in the dump doesn't match the

Using Console.WriteLine within a Windows Forms application

北城余情 提交于 2020-01-10 19:38:09
问题 I have an external DLL whose source code is C#. From the documentation for the DLL, I determined that it writes its debug messages to the console using Console.WriteLine . I'd like to use this DLL within a WinForms application. However, what I have discovered is that I cannot see the debug messages emitted by the DLL since a WinForms application does not have a console. is there a way to capture those debug messages, perhaps even to a simple log file? Of course, using ProcessInfo

Linter gives “Error parsing URL” error

China☆狼群 提交于 2020-01-10 19:15:12
问题 GOAL: I'm trying to apply a Like button to my blog - this is my first time trying it. BEHAVIOR: The button shows up, but when someone clicks "Like", the word "error" shows up in red next to the like button. No interaction with Facebook occurs. FIX TRIED: I've tried both the iframe and the html5 implementation, same behavior using both methods. FIX TRIED #2: The word "error" shows up as a hyperlink suggesting I use the Facebook Linter, so I did. However, when I put in my URL, the Linter gives

PHP Debugging with Breakpoints - case studies, examples..?

天大地大妈咪最大 提交于 2020-01-10 17:59:14
问题 I'd really like to get deeper into my php scripts and use things like breakpoints, as I'm doing with JS with firebug. I'd like to know more about what techniques people use, and some solid examples of how to debug with breakpoints a php project. Thing's I'd like to be able to see.. Properties of objects Class hierarchies.. where objects are coming from, file names etc.. (useful in ZF/Magento) Variables, types, content.. headers, post data, get data, session data, cookies.. Network /

NSNumber >= 13 won't retain. Everything else will

我只是一个虾纸丫 提交于 2020-01-10 16:15:54
问题 The code I'm currently working on requires adding an NSNumber object to an array. All of the NSNumbers with value 0-12 are added fine, but 13 onward causes a EXC_BAD_ACCESS. I turned on NSZombieEnabled and am now getting *** -[CFNumber retain]: message sent to deallocated instance 0x3c78420 . Here's the call stack: #0 0x01eac3a7 in ___forwarding___ #1 0x01e886c2 in __forwarding_prep_0___ #2 0x01e3f988 in CFRetain #3 0x01e4b586 in _CFArrayReplaceValues #4 0x0002a2f9 in -[NSCFArray insertObject