Questions tagged as 'debug'

1
answer

How to use debug in Eclipse?

I'm having a very annoying problem with a java.lang.NullPointerException error and I want to know if with debug it shows which element is null, rather than just saying what line the error is in.     
asked by 09.02.2014 / 00:10
9
answers

How to debug code in PHP?

For example, in javascript we have console.log to debug, find out where the errors are, etc. And in PHP, what would be the best ways ?     
asked by 17.02.2014 / 00:05
2
answers

Why use error_reporting with display_errors and display_startup_errors?

I've been using it for a long time: error_reporting(E_ALL|E_STRICT); To debug scripts (note that I use E_STRICT just to maintain compatibility with older versions of PHP), but I noticed that other people often use ini_set('display_...
asked by 04.01.2016 / 02:45
2
answers

Is there a function to display the defined variables?

Is there a way to give a "var_dump" in all variables instantiated in that context, without having to put each one inside var_dump ()?     
asked by 27.12.2013 / 11:39
4
answers

How do StringBuffer () and StringBuilder () behave?

Problem and Mystery: StringBuffer y = new StringBuffer("Eduardo"); I'm using a StringBuffer because I need to add some values to it later. I was debugging and noticed that there is a blanks at the end. Notice the image: Image...
asked by 27.02.2014 / 22:17
1
answer

What does Traceback mean?

When creating some basic programs in Python, I occasionally run into errors that bring the word traceback , so I was curious to find out what traceback meant.     
asked by 05.11.2016 / 19:40
1
answer

What is the difference between test and debugging?

In the book "Introduction to Software Testing" by Ammann & Offutt mentions in p.32 the 5 levels maturity models of software testing:    Level 0 - There is no difference between testing and debugging.    Level 1 - The purpose of a test i...
asked by 27.08.2016 / 04:09
1
answer

How to configure the Visual Studio Code to open the console in a new window?

In earlier versions the Visual Studio Code Console opened in a window outside Visual Studio Code , but in the new versions this Console screen was opened in of the Visual Studio Code itself, which greatly disrupts debugging because the cons...
asked by 21.12.2015 / 11:55
3
answers

How to know the amount of memory used by my PHP application?

I would like to know if there is any way to know how much my PHP application is consuming from memory. For example: I want to know at the end of the script how much PHP spent in the process of running a particular script. Is there a functi...
asked by 18.01.2017 / 18:32
1
answer

How do I Debug BASH Scripts?

How can I debug bash scripts? In DOS from Microsoft I can use the @echo ON and @echo OFF. I would like to use something similar on Linux.     
asked by 18.03.2014 / 16:08