I think error handling is a good idea. :) When debugging it can get in the way - especially with nice user friendly messages. In VB6 I could just check a box for the compiler to ignore my error handling. I found the dialog that allows me to do something similar in VS, but it's about 10,000 check boxes instead of one - which is too ma...
Does anyone know how I can for the g++ or gcc runtime to scramble the ram where an object was after delete? I have a theory that I'm using an object after it has been deleted but in practice it rarely crashes.
...
I used to use xDebug under Windows XP (as written here → http://serge.yrik.org.ua/blog/blog/devblog/14.html), but it doesn work under Win 7 !
...
Anyone know a tool I can use to debug "cannot access the file because it is being used by another process" exceptions? I suspect a virus scanner but I can't be sure.
...
I set out to get myself a neat C debugging macro, not really sure what I really wanted (and being clueless when it comes to macros) I turned to google. Some time later and I now think I know what I want, but not how it works. I haven't had much luck with getting decent information about macros and techniques for debugging.
What I've bee...
The java.io.Console class requires there to be a Console device (window). How can I debug if I am using this class? I'm using netbeans IDE.
UPDATE:
I figured out how to wrap Sysytem.in with a InputStreamReader and then a BufferedReader. This works even without a Console window, so I can use it instead.
If anyone still answers the ...
Debugging a PHP program, is there any add-on/plug-in for browser which I can view sessions variables (those PHP $_SESSION["foobar"] )?
Best if I can change the value in the variables.
...
I am interested in knowing Debugging setup that'll allow a programmer to be most productive. Assuming knowledge about debugging in general.
I am mainly interested in knowing how and where you place different windows like the variables window, code window, the stack. Also possibly the relative size of different windows.
I'd prefer if the...
Title kinda says it all. The usual SOS command !bpmd doesn't do a lot of good without a name.
Some ideas I had:
dump every method, then use !bpmd -md when you find the corresponding MethodDesc
not practical in real world usage, from what I can tell. Even if I wrote a macro to limit the dump to anonymous types/methods, there's no ob...
How to stop execution of an ASP.NET app on demand during debugging and show the line of code where the app was aborted at that moment? Using Visual Studio 2010 RC Ultimate.
...
I have some variables inside a template and i dont know where i assigned them, so i need to know what inside this variable is
say i have a var in smarty called member
i tryed with {debug} but it didnt work, no popup was shown.
How can i debug smarty variables using something like var_dump() inside the templates ?
...
As you might know, it's now possible to trace Erlang functions by using the short form:
dbg:tpl(Module, Function, x).
Instead of the usual:
dbg:tpl(Module, Function, dbg:fun2ms(fun(_) -> exception_trace() end)).
I'm actually wondering if a similar short form is available for return_trace(). Something like:
dbg:tpl(Module, Function...
Is there anything like this:
TEST DELETE FROM user WHERE somekey = 45;
That can return any errors, for example that somekey doesn't exist, or some constraint violation or anything, and reporting how many rows would be affected, but not executing the query?
I know you can easily turn any query in a select query that has no write or del...
As I get more and more into my job I've had a lot of opportunity to code new projects from scratch. Almost every programmer I know really appreciates that opportunity.
But the further I go into it, the more I enjoy bug fixing. In fact, if I can spend a whole day looking over code, whether it be mine or someone else's code, and find som...
DELETE FROM #tItem_ID
WHERE #tItem_ID.Item_ID NOT IN (SELECT DISTINCT Item_ID
FROM Item_Keyword
JOIN Keyword ON Item_Keyword.Keyword_ID = Keyword.Record_ID
WHERE Keyword LIKE @tmpKW)
The Keyword is %macaroni%. Both temp tables are 3300...
I have an application that works fine when run with administrator privileges. When run by a user it has problems reading from the Event Log. I would like to run the code in the debugger but not with my administrator settings. Is this possible in Visual Studio 2008 ?
...
I remember reading an article that an average programmer spends 90% of the working time for debugging, and 10% for actual development. Even though the number itself may not be correct for everyone, I think the idea itself makes sense.
Then how about the idea of DDE - Development for Debugging Easiness?
In order to do sthat, I think of...
I am running some import code asynchronously from a simple WinForms app using a BackgroundWorker object and its DoAsync() method. I had a problem where I didn't know that exceptions were being thrown and the thread was prematurely dying. I eventually discovered this, and now know when an exception is thrown after reading Unhandled exce...
Currently I have solution A that contains a domain layer base and solution B that references the binaries from solution A. Is there a way to debug straight through from one to the other with two instances of visual studio open (one for each solution). I've read that you can just add the existing projects from solution A to solution B. ...
I need someone to debug the lines of c++ code I wrote below so it can run. It is intended to spell check the word "and" using state to state transition.
#include<iostream>
#include<string>
using namespace std;
string in_str;
int n;
void spell_check()
{
int i;
FILE *in_file;
while (!EOF(in_file))
{
fsca...