52,750 questions
2136
votes
117
answers
1.9m
views
How do I remedy "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?
A C# desktop application (on the Visual Studio Express edition) worked, but then it didn't work 5 seconds later.
I tried the following:
Ensure debug configuration, debug flag, and full debug ...
1560
votes
22
answers
1.1m
views
How can I get the full object in Node.js's console.log(), rather than '[Object]'?
I have this object:
const myObject = {
"a":"a",
"b":{
"c":"c",
"d":{
"e":"e",
"...
1326
votes
43
answers
748k
views
Run/install/debug Android applications over Wi-Fi?
I thought there was a way to test your applications in development over Wi-Fi. Is this possible?
I'd love to be able to untether my phone and develop wirelessly.
888
votes
23
answers
565k
views
Unfortunately MyApp has stopped. How can I solve this?
I am developing an application, and everytime I run it, I get the message:
Unfortunately, MyApp has stopped.
What can I do to solve this?
About this question - obviously inspired by What is a stack ...
810
votes
7
answers
683k
views
What is a stack trace, and how can I use it to debug my application errors?
Sometimes when I run my application it gives me an error that looks like:
Exception in thread "main" java.lang.NullPointerException
at com.example.myproject.Book.getTitle(Book.java:16)
...
781
votes
13
answers
976k
views
Writing to output window of Visual Studio
I am trying to write a message to the output window for debugging purposes. I searched for a function like Java's system.out.println(""). I tried Debug.Write, Console.Write, and Trace.Write. It does ...
702
votes
14
answers
461k
views
How can I view the source code for a function?
I want to look at the source code for a function to see how it works. I know I can print a function by typing its name at the prompt:
> t
function (x)
UseMethod("t")
<bytecode: 0x2332948>
&...
658
votes
41
answers
747k
views
How can I get useful error messages in PHP?
Quite often I will try and run a PHP script and just get a blank screen back. No error message; just an empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon),...
619
votes
16
answers
584k
views
Debugging with command-line parameters in Visual Studio
I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this ...
594
votes
4
answers
401k
views
What is private bytes, virtual bytes, working set?
I am trying to use the perfmon windows utility to debug memory leaks in a process.
This is how perfmon explains the terms:
Working Set is the current size, in bytes, of the Working Set of this ...
577
votes
15
answers
561k
views
C# if/then directives for debug vs release
In Solution properties, I have Configuration set to "release" for my one and only project.
At the beginning of the main routine, I have this code, and it is showing "Mode=Debug".
I also have these ...
528
votes
35
answers
470k
views
What does status=canceled for a resource mean in Chrome Developer Tools?
What would cause a page to be canceled? I have a screenshot of the Chrome Developer Tools.
This happens often but not every time. It seems like once some other resources are cached, a page refresh ...
506
votes
8
answers
358k
views
#if DEBUG vs. Conditional("DEBUG")
Which is better to use, and why, on a large project:
#if DEBUG
public void SetPrivateValue(int value)
{ ... }
#endif
or
[System.Diagnostics.Conditional("DEBUG")]
public void SetPrivateValue(...
503
votes
12
answers
267k
views
How can I inspect the file system of a failed `docker build`?
I'm trying to build a new Docker image for our development process, using cpanm to install a bunch of Perl modules as a base image for various projects.
While developing the Dockerfile, cpanm returns ...
489
votes
9
answers
309k
views
Print current call stack from a method in code
In Python, how can I print the current call stack from within a method (for debugging purposes).
477
votes
6
answers
302k
views
How do I print the full value of a long string in gdb?
I want to print the full length of a C-string in GDB. By default it's being abbreviated, how do I force GDB to print the whole string?
462
votes
18
answers
969k
views
JavaScript: How do I print a message to the error console?
How can I print a message to the error console, preferably including a variable?
For example, something like:
print('x=%d', x);
425
votes
30
answers
1.9m
views
How can I write to the console in PHP?
Is it possible write a string or log into the console?
What I mean
Just like in JSP, if we print something like system.out.println("some"), it will be there at the console, not at a page.
421
votes
22
answers
824k
views
JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."
I have been adding logs to the console to check the status of different variables without using the Firefox debugger.
However, in many places in which I add a console.log in my main.js file, I ...
408
votes
43
answers
454k
views
Eclipse - Unable to install breakpoint due to missing line number attributes
I am getting this strange error in Eclipse while trying to set a breakpoint.
Unable to insert breakpoint Absent Line Number Information
I ticked the checkbox from Compiler options but no luck.
403
votes
29
answers
193k
views
Showing the stack trace from a running Python application
I have this Python application that gets stuck from time to time and I can't find out where.
Is there any way to signal Python interpreter to show you the exact code that's running?
Some kind of on-...
393
votes
7
answers
186k
views
How to make Google Chrome JavaScript console persistent?
Since I'm building a dynamic site, I need to track the changes between pages, ie. Ajax calls, POST, GET stuff and similar stuff.
I'm looking for the same functionality like in Firebug (where you can ...
376
votes
7
answers
87k
views
How to see which plugins are making Vim slow?
Is there a way to profile Vim plugins?
My MacVim becomes slower and slower when I open a large .py. I know I could deselect all plugins and reselect one by one to check which plugin is the culprit, ...
371
votes
20
answers
826k
views
Check if object exists in JavaScript
How do I verify the existence of an object in JavaScript?
The following works:
if (!null)
alert("GOT HERE");
But this throws an Error:
if (!maybeObject)
alert("GOT HERE");
The Error:
...
360
votes
30
answers
313k
views
Easier way to debug a Windows service
Is there an easier way to step through the code than to start the service through the Windows Service Control Manager and then attaching the debugger to the thread? It's kind of cumbersome and I'm ...