Questions tagged [debugging]
Finding problems in a program and trying to solve these.
201
questions
0
votes
2
answers
417
views
Where to get the source tar of zend debugger for PHP 5.3.x for linux?
I went here,but the web debugger only contains the windows version zenddebugger.dll, where to get the source tar of zend debugger or better the zenddebugger.so for linux?
7
votes
1
answer
2k
views
How to configure PHPStorm to debug on IIS
I installed PHP 5 on IIS on a Windows 7 64 bit machine using the Web Platform Installer. I am using PHPStorm as my PHP IDE but cant find any documentation on how to get debugging to work. PHPStorm ...
59
votes
10
answers
65k
views
How to setup a fake SMTP server to catch all mails?
I'm looking for an smtp service that essentially obeys the RFC, except rather than sending mail it simply logs to a file
[date] sent mail to <address>
Or whatever. I can bash this together ...
2
votes
1
answer
455
views
Format Filename for Process Core Files per Session
Is there a way to change the core filename format per session instead of for the entire machine?
On Linux the only way I can find is using sysctl as root:
sudo /sbin/sysctl -w "kernel.core_pattern=...
2
votes
1
answer
4k
views
Troubleshooting PHP High CPU on Production Server
We're trying to find a bug that will cause multiple PHP processes to be run at the same time and thus eating up the CPU resources for around 5 minutes. During these 5 minutes, our server will totally ...
1
vote
2
answers
347
views
capture traffic between boards at PC using wireshark
I have two board connected using ethernet interface by means of switch. I have a linux machine connected to
the switch where I run wireshark. I assign same IP address range for both boards and the PC....
1
vote
2
answers
220
views
How do I add a new virtual host to my apache?
<VirtualHost mydomain1.com:80>
ServerAdmin webmaster@localhost
...stuff here
</VirtualHost>
<VirtualHost mydomain2.com:80>
ServerAdmin webmaster@localhost
...stuff ...
4
votes
2
answers
9k
views
Configuration parameter in xdebug for allowing multiple hosts on remote machine
I am working on one web application. The project located on my linux box i.e. server. We are remotely accessing this machine from windows.
I am using xdebug for debugging alongwith Eclipse PDT. ...
1
vote
1
answer
247
views
How to use xdebug with eclipse IDE for PHP?
Hi my PHP project is set up on a remote test machine. I need to debug it using eclipse IDE. How shall I progress. I came to know i should prefer Xdebug rather than zend debugger.
Please clarify my ...
2
votes
1
answer
312
views
how to debug the apache output filter
i am working on the output filter but it is behaving very abnormally. i am not gettin the the data from the server in continous chunk. it's like first data from the server then next chunk will be the ...
1
vote
1
answer
2k
views
How to read Windows Server 2008 (x64, SP2) memory dumps?
My server suddenly started crashing every time I debug a chunk of code on my laptop which accesses the database on the server remotely. It's done it twice now, and I've stopped trying to debug my code ...
3
votes
1
answer
15k
views
Debug 500 Internal Server Error on IIS
Might be a n00b question.
I have an IIS server with a site where I can host our website. But if I host the same website as an application in an existing site, it gives us a 500 error.
But my ...
6
votes
3
answers
30k
views
How do I identify slow queries in sql server?
I've found long, complicated instructions like this when googling for the answer to this question, an brief reference links such as in this post.
I'm looking for a succinct a procedure as possible to ...
1
vote
2
answers
6k
views
IIS mystery: "Deadlock detected" periodically makes site unavailable
A few times a day, our vb.net (IIS 6.0) website is randomly throwing the following error and becomes completely unavailable for 5-15 minutes at a time while the application is recycled:
ISAPI 'c:\...
0
votes
1
answer
115
views
Will logging debugging incur a performance hit if I don't turn debugging on?
On a Cisco device, I know that enabling debugging can incur a performance hit since debugging has such a high priority on the CPU. I know that to log debugging, you have to set logging up to the ...
0
votes
3
answers
501
views
Server stop responding, where to look to know what happened?
I have a server that has been running for well over 5 months and suddently it stop responding. I couldn't ssh into it or anything else so I decided to reboot it and the reboot fixed it.
I'm trying to ...
2
votes
1
answer
2k
views
See full HTTP traffic in Tomcat logs
For debugging purposes, I need a way to see all HTTP traffic between our Tomcat installation and the test clients.
How can I configure Tomcat to trace all HTTP traffic (and not just the headers)?
We ...
3
votes
2
answers
909
views
How do I figure out what is changing the userWorkstations attribute in Active Directory?
I just took over the IT for a medium sized business with a three domain controllers (2003/2008 Standard) and whenever I create a new user, after some time the user account cannot log into most ...
2
votes
2
answers
7k
views
Run as another user, but also as administrator
I am trying to debug a virtual machine (VM) running on a remote computer from my workstation (A). Both VM and A are running Windows 7 Enterprise.
Apparently, I need to start the Remote Debugger ...
2
votes
2
answers
2k
views
Debugging Windows 2008 (Roaming Profile) user logon
I would appreciate some help debugging my windows 2008 profile service. Any domain account that logs on to my 2008 machine gets a +- 20 second waiting time on "user profile service"
I am using ...
1
vote
4
answers
9k
views
I need help debugging apache with gdb (no debugging symbols found)
I'm trying to debug a segfault in PHP/Apache running on RHEL4.
This is a production server, so I'm trying to install a separate copy of Apache and PHP, and run apache through gdb.
When I load httpd ...
2
votes
3
answers
4k
views
Simple HTTP server that will send the same file for all requests?
I need to debug a XML-RPC application, which sends XML replies over HTTP. I have a sample XML reply (i.e. data from the server, sent to the client that isn't working), I'd like to debug my application....
55
votes
6
answers
32k
views
Debugger for Iptables
I'm looking for an easy way to follow a packet through the iptables rules. This is not so much about logging, because I don't want to log all traffic (and I only want to have LOG targets for very few ...
2
votes
1
answer
493
views
flowchart for debugging a slow/unresponsive server
So the server is slow:
Roll back to the previous known working build
- Success? Code problem
- Fail? Go on.
Ping ip address
- Success? maybe a DNS problem, go on.
- Fail? Server or connection ...
0
votes
3
answers
126
views
What's XDebug used for?
test:coverage relies on XDebug to
collect its information, you need to
install it and enable it first.
How does it work?
1
vote
1
answer
572
views
What does this mean in MySQL?
C:\Documents and Settings\Administrator>mysqld-nt --defaults-file="D:\MySQL\MySQ
L Server 5.0\my.ini" --standalone --console
100125 10:47:26 InnoDB: Operating system error number 32 in a file ...
53
votes
4
answers
82k
views
How can I find out what is causing interrupts on Windows?
Occasionally I come across servers (Windows 2003 and 2008) with high processor % interrupt time. Is there a way to see what program or device is causing the interrupts?
0
votes
2
answers
225
views
Random http 500 on wordpress
My wordpressblog produces http 500s on a small percentage of the requests. It doesn't seem to be tight to special urls, but it seems to happen clustered in time. i.e there are times when it happens ...
1
vote
2
answers
2k
views
Cannot receive start command
I have a WAMP install (Apache 2.2.3, PHP 5.2.8) with a working Zend Optimizer.
As soon as I add the php.ini lines for Zend Debugger:
[Zend Debugger]
zend_extension_manager.debug_server_ts="C:\...
1
vote
4
answers
3k
views
503 service unavailable when debugging PHP script in Zend Studio
I have a web server with apache 2.0 installed. It comes with Zend Server install pack. When I’m trying to debug my php files apache serves a blank page with 503 service unavailable. Of course slow ...
0
votes
1
answer
3k
views
503 service unavailable debugging PHP files
I have a web server with apache 2.0 installed. It comes with Zend Server install pack.
When I’m trying to debug my php files apache serves a blank page with 503 service unavailable.
Of course slow ...
2
votes
1
answer
4k
views
iis 7 worker process memory leaks / hangs
From my diagnosis the worker process stops responding randomly, the server becomes very slow with 100% cpu utilization. I'm not certain but I think its because of w3wp.exe process which is my app pool....
0
votes
2
answers
156
views
How to debug Apache issue or upgrade Apache
Something (dunno what, perhaps GIT which I just upgraded) is causing my connection to loalhost to work veeeery slowly.
Using WinXP Pro.
I was thinking to upgrade Apache, but could not figure out ...
42
votes
3
answers
107k
views
Debugging rules in Iptables [duplicate]
How can I know how many packets were dropped by my iptables rules ??
Is there any debugging mechanism to see which rule is Dropping my packet or Accepting it ??
1
vote
3
answers
3k
views
Squid 3.1 does not route traffic via ProxyChains
EDIT START
To clarify what I need an answer to:
What is different in Squid v3.1 vs v3.0?
Why does the above difference not work with ProxyChains?
What changes do I need to make to Squid 3.1 to make ...
2
votes
1
answer
3k
views
How to debug a website while running IIS 7?
I am running iis7 on my windows machine for testing purposes. Now I need to have access to the debugger so when something happens I can walk through it.
Yet when I put debug lines on my site nothing ...
2
votes
2
answers
505
views
Cisco 2811 debug command
Is there a command that allows the debugs to be shown in color. It would be easier for my techs to read the debug outputs. Didn't see any that I could find.
Thanks
3
votes
3
answers
2k
views
Identifying "Lock Timeout" errors on SQL Server 2000
Our ERP software uses a SQL Server 2000 database. When we run a specific task on the software that used to take few seconds, a 300 seconds delay happens and SQL Server returns the error "Lock Timeout. ...
2
votes
2
answers
738
views
Where (and how) to put PDB files for custom .NET code?
Our developer sent me a PDB file to help debug a custom application. I currently have my symbol directory set to c:\symbols, and several Microsoft symbols are there in this folder format:
ntdll.pdb
...
4
votes
3
answers
7k
views
Getting debug output from a debian initramfs
I'm attempting to configure a server for a debian lenny on software raid0 and a LVM root filesystem via the serial console and the hosting company's recovery console (basically an ubuntu liveCD).
...
3
votes
1
answer
388
views
Windbg: Can't get next object after a Free object
I know that fragmentation typically occurs when an object collected by
garbage collection is marked as a "free" block, but the object
occupying the next address space is pinned. I can get a list of ...
14
votes
9
answers
9k
views
Equivalent of SysInternals FileMon for Linux?
I'm attempting to debug an application on Ubuntu - I need to listen to file open attempts (even for files that don't exist).
Process Monitor (formerly known as FileMon) is available on Windows - what'...
1
vote
5
answers
9k
views
How can I grab a Memory Dump of my W3WP.exe process?
I'm tracking the CPU usage of a recent build I did to our Windows 2008 SP2 server.
Here's the task manager screenie...
See how it spikes? I wish to find out what are causing em. Before I do anything, ...
1
vote
2
answers
246
views
OpenSolaris/x86 responding sluggishly - frequent freezing
The system starts up fine, and for about 5 minutes (est.) things are fine. Then the system starts to get very sluggish ("choppy"): the mouse will freeze for two or three seconds, then release for ...
102
votes
8
answers
131k
views
How to make bash scripts print out every command before it executes?
For example, I have a simple bash file
#!/bin/bash
cd ~/hello
ls
How can I make it display every command before executing it? Just the opposite effect of "@echo off" in windows batch scripting.
5
votes
2
answers
11k
views
Why would brk() in strace output be taking several seconds?
We've been noticing a significant slowdown of one of our applications when migrated to Ubuntu Hardy, amd64. It runs perfectly well on Debian Sarge i386.
Running an 'strace -r' against the (Apache 1.3)...
1
vote
5
answers
133
views
How to debug problems over IM and the phone?
If, like me, you get friends, family, and coworkers with computer problems (whether it's server, desktop, or laptop related), who ask you to help over the phone or IM, how do you debug problems?
I'm ...
11
votes
12
answers
702
views
What's the first thing you check when an untouched unix server starts going berserk?
So you have this neatly setup unix server and it's super fast and works swell and everything is great for months, and suddenly all kinds of weird errors start showing up for a variety of different ...
8
votes
2
answers
48k
views
Online mod_rewrite testing tool
mod_rewrite statements can be hard to write and debug, therefore I need a lightweight online tool that enables me to test my RewriteCond, RewriteRule statements on the fly.
Any such tool?
2
votes
1
answer
1k
views
Debugging WebDAV using gvfs
gvfs (gnome virtual file system) felt the need to reimplement some of the common filesystems. I'm trying to get people onto our WebDAV shares, but I'm getting pretty cryptic errors.
What I'd like to ...