2004-10-15
== How to remotely debug using jdb == First compile your java code with the '-g' option. Deploy the compiled . . . start the virtual machine on the server with debugging parameters: -Xdebug -Xrunjdwp:transport=dt_socket,address=6000,server=y,suspend=n . . . open Debugger, click Remote and check Remote Debugging. Select 'Attach to JPDA' which means we attach . . . and the address which you specified in the debugging parameters, for example 'oxdaps20a' and '6000'. . . . at. Compile and deploy your code again and start debugging again. When the JDeveloper debugger acts . . .
3K - last updated 2005-03-19 10:51 UTC by 6514
2007-10-26 PEARs HTML QuickForm Controller goodness
I'm in the middle of coding up a multi-page wizard-style bunch of PHP pages. The MVC pattern is implicit . . . is used. However, it turns out that debugging can be quite painful. Because the controller . . . I coded for the website. That's not my idea of debugging, but I'm not sure how else the bug could've . . .
3K - last updated 2007-10-27 07:39 UTC by 6514
2007-11-28 Testing optimization
After running the Fiske macro for the setup part, we have a nice value for the FFO Control Line (CL) . . . something had to be going on here. After adding debugging,... the problem disappears. This is good . . .
6K - last updated 2007-12-06 17:45 UTC by 6514
2015-06-16 AutoLayout in WWDC 2015
Be sure to check out these videos on AutoLayout: * [https://developer.apple.com/videos/wwdc/2015/?id=218 . . . 2: * Use the .identifier property on views when debugging, it's a string that'll show up in the log . . . is running, check the menu Debug, option View Debugging . . .
2K - last updated 2015-06-16 06:20 UTC by 6514
2015-08-07 Swift Reflect example
Halfway last month, Erica Sadun wrote a blog entry where she used the <tt>reflect()</tt> function: [http://ericasadun.com/2015/07/14/swift-just-because/ . . . reflect() function is used by Xcode to aid in debugging let mirror = reflect(item) // It returns . . .
2K - last updated 2015-08-07 15:27 UTC by 6514
2015-12-11 Measuring startup time
The startup time of your app is determined by a bunch of things, but one that you can easily and directly . . . This code is just for a quick round of debugging, and must be removed afterwards. NSLog itself . . .
2K - last updated 2015-12-11 09:11 UTC by 6514
2021-03-22 Debugging view sizes
Here's a tip if you wish to show the sizes of views in your SwiftUI previews. Add the following struct . . .
2K - last updated 2021-03-22 08:45 UTC by 6514
2022-09-14 Getting an unescaped JSON string from Xcode console
If you're debugging an app, you may want to copy raw JSON in Xcode, then paste it into a specialized . . .
1K - last updated 2022-09-14 09:20 UTC by bartvk
Adjusting Starfighter
Reading source code is one of those things that I feel that nobody likes, while the advantages are so . . . of files and suddely spot some commented-out debugging code in Starfighter.cpp. It turns on some . . . code still fires a rocket when I changed that debugging code to give me an Ion Cannon. I'm going . . . to debug! First, we need to recompile with debugging information included. That's not done for . . . one, since I heard that doesn't go well with debugging. Again, I type make clean and make. == Debugger . . .
9K - last updated 2007-05-01 13:56 UTC by bvankuik
Bash
= Online resources = [http://ldp.nl.uu.net/LDP/abs/html/ Advanced Bash-Scripting Guide] = Changing numbering . . . file is now contained in the $file variable. = Debugging = Debugging is easiest done by writing to . . . in the web server's error log: echo "This is a debugging message" >&2 = Setting cookies = Before printing . . .
10K - last updated 2012-09-14 07:29 UTC by 6514
CDT
[http://www.eclipse.org/cdt/ CDT homepage] [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt-home/user/faq.html?cvsroot=Tools_Project . . . Leaving it running in the background and debugging at the same time doesn't seem to work on . . . tab of the launch configuration. * If you're debugging an application which does a fork and then . . .
3K - last updated 2006-02-16 12:38 UTC by 6514
Debugging
= GNU debugger = For an introduction into gdb, check out [http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html . . . is not "the" RMS). Especially mind the example debugging sessions. Compile with flags <tt>-g3 -gdwarf-2</tt> . . . core dumping happen, compile your program with debugging options (-g) and enter the following command . . . core file. But be careful: core dumps with full debugging information can easily add up in size. An . . . lines ... Then either you didn't compile with debugging flags, or you forgot to pass the original . . .
8K - last updated 2012-03-16 14:17 UTC by 6514
Firewalling
= WARNING WORK IN PROGRESS = As a developer, you sometimes write software to listen to ports that need . . . and derivatives, just type # iptables-save = Debugging = To debug your firewall rules and see where . . .
2K - last updated 2008-11-28 08:14 UTC by 6514
Forking
= Start extra processes = Problem: how can I create multiple processes? The answer in the Unix world . . . common not to fork into the background. It makes debugging and in general, managing the process harder. . . .
4K - last updated 2006-10-10 09:54 UTC by bvankuik
GDB
See also [[Debugging]] . . .
1K - last updated 2010-03-04 09:42 UTC by 6514
JavaSnippets
To do quick-'n'-dirty timing: boolean debug = true; long startTime = System.currentTimeMillis(); if (debug) . . . { private Connection conn; private boolean debugging = false; private StringBuffer runtime; public . . .
3K - last updated 2005-03-14 10:40 UTC by 6514
Linux on a Dell D600
My employer issued a shiny brand-new Dell Latitude D600. Here, I'm listing any issues I had with this . . . laptop its screen (1400x1200) shows output and debugging screens, and some terminals, browsers etc. . . .
3K - last updated 2005-03-19 07:00 UTC by 6514
Long-running queries
To put a long-running query in the background, and keep refreshing your JSP until it's done, see below. . . . { private Connection conn; private boolean debugging = false; private StringBuffer runtime; public . . .
2K - last updated 2005-11-10 09:11 UTC by 6514
Objective-C
= Timing = To roughly measure the time necessary to do a certain action: CFTimeInterval startTime = CFAbsoluteTimeGetCurrent(); . . . to use mach_absolute_time() in App Store code. = Debugging = The following standard timestamp is really . . .
2K - last updated 2024-05-07 14:51 UTC by bartvk
Parsing and transforming RDF files in PLSQL
When you say 'XML', you'd probably also say 'Java' -- until now, because a stock Oracle database installation . . . code is rather alpha-quality and also because debugging code in a batchjob is a PITA... Note that . . .
15K - last updated 2005-03-19 06:57 UTC by 6514
Python
= Debugging trick = To make the debugger prompt pop up at a specific place, paste the following line . . .
2K - last updated 2013-02-28 08:44 UTC by 6514
UNIX Toolkit
What follows is an explanation of several operating system mechanisms for programmers in the UNIX environment. . . . * [[qmake]] * [[Shared_libraries]] * [[Debugging]] * [[Example_of_building_and_using_an_external_library_with_SafeStr]] . . .
1K - last updated 2007-10-11 13:21 UTC by 6514
User Mode Linux and Fedora Core 3
User Mode Linux (UML) is pretty amazing: you run a complete Linux installation ''inside'' your normal . . . # The filesize can be up to 15Mb. You can remove debugging information and get it down to 2Mb or so: . . .
5K - last updated 2006-02-02 09:20 UTC by 6514
Xcode
= Xcode in general = If you get a weird error, first always try to restart Xcode. = Debugging = Some . . . tips: * When debugging with Xcode, always add a breakpoint on "all . . . stop wherever the exception occurs. = Slow debugging = When using an iOS device running 4.2.1 . . .
3K - last updated 2012-10-02 00:05 UTC by 6514
Yum
I've seen my share of Yum problems, because I run yum on low memory systems (256-512 MB) and yum needs . . . Also, neither the --verbose flag nor the -d debugging flag will have any effect. To fix this, run . . .
2K - last updated 2011-09-07 07:07 UTC by 6514
25 pages found.