Debugging as a

process. <{full}>
There is an opinion that the development takes about 10% of the time, and debugging - 90%. Perhaps this statement is exaggerated, but any developer agrees that debugging is an extremely resource-intensive process, especially in large multithreaded systems.
 
 
Thus, optimization and systematization of the debugging process can bring significant benefits in the form of saved man-hours, increasing the speed of problem solving and, in the end, increasing the loyalty of your users.
 
 
Debugging as a  
 
Sergey Shchegrikovich
(dotmailer) at the conference
DotNext 2018 Piter
suggested looking at debugging as a process ...
+ 0 -

How to make PHPstorm, xDebug and remote branches compiled via Docker? Too simple

How to make PHPstorm, xDebug and remote branches compiled via Docker? Too simpleKind time of the day, Habr!
 
 
A year ago my process of debugging code in PHP consisted of two lines:
 
var_dump ($ variable);
die ();

 
Periodically, of course, we had to use more "complex" designs:
 
console.log (data);

 
echo json_encode ($ variable, JSON_UNESCAPED_UNICODE);
exit ();

 
No, you! I knew - in our time it does not fit for a cultural programmer to deal with this
ancient craft [/b]
joke about another ancient craft
 
 
But, frankly, I was always afraid of what I do not understand. Including printers xDebug, in particular, how to set up this whole thing. One day ...
+ 0 -

Budget debugger to ESP-32 and its configuration

+ 0 -

Configuring UFW in Ubuntu Server ??? for the example of BigBlueButton

UFW (Uncomplicated Firewall) is an iptables interface designed to simplify the process of configuring the firewall. The iptables tool is reliable and flexible, but it will not be easy for a novice to configure it yourself. I'm just new to this business.
 
 
By default, iptables includes the ACCEPT policy and looks like this:
 
 
Configuring UFW in Ubuntu Server ??? for the example of BigBlueButton  
 
In our example, there are no restrictions. The default policy is ACCEPT.
 
 
INPUT - INCOMING CONNECTIONS.
 
OUTPUT - OUTPUT CONNECTIONS.
 
FORWARD - ROUTING (FOR EXAMPLE, YOU NEED TO PRINT THE ROUTE to the computer behind the gateway).
 
 
You can enable ufw with the command ...
+ 0 -

Limitations that need to be violated or how we speeded up the functional tests three times

Limitations that need to be violated or how we speeded up the functional tests three times
 
 
Functional tests are a useful thing. At first they do not take much time, but the project is growing, and more and more tests are needed. We did not intend to endure the slowdown in the speed of delivery and, gathering strength, accelerated the functional tests three-fold. In the article you will find universal advice, however, you will notice a special effect on large projects.
 
 

Briefly about the appendix


 
My team is developing a public API that provides data to users of 2GIS. When you visit 2gis.ru and search for "Supermarkets", you get a list of organizations - this is the data from our ...[/h]
+ 0 -

Use the debugger Android Studio to a maximum of

Use the debugger Android Studio to a maximum of
 
It's a trick that I learned about recently from the Android Android Developer in my company, and now I feel unhappy, regretting the time I spent waiting for the Gradle build to check my changes when writing Android applications.
 
Here is a typical scenario that every Android developer could meet at least once during its development life cycle. You have a list of the items you want to show in
ListView
or
RecyclerView
.
 
Below is our beloved method onBindViewHolder , which connects your model to your view-components RecyclerView .
 
    @Override
public ...
+ 0 -

As the only line of ancient code for six months, the developers of MMORPG &lt;{short}&gt; were mad. &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <div style="text-align:center;"> <img src="https://habrastorage.org/getpro

were mad. <{full}>
As the only line of ancient code for six months, the developers of MMORPG  were mad.         
 Most often from game developers you can hear a very simple phrase: it's surprising that games generally come out. Games are complicated, untamed monsters, connected by something like digital insulating tape. It's not surprising that they fall apart.    
    
  Aliens: Colonial Marines  was problematic for many reasons, but quickly became a common laughingstock when such viral  appeared. clips  , in which xenomorphes meaningless wander through the levels. This month the developer of mods  found  , that the reason for the stupid behavior of AI "strangers" was one error in the code of the game. (This was  were mad.         
 Most often from game developers you can hear a very simple phrase: it's surprising that games generally come out. Games are complicated, untamed monsters, connected by something like digital insulating tape. It's not surprising that they fall apart.    
    
  Aliens: Colonial Marines  was problematic for many reasons, but quickly became a common laughingstock when such viral  appeared. clips  , in which xenomorphes meaningless wander through the levels. This month the developer of mods  found  , that the reason for the stupid behavior of AI "strangers" was one error in the code of the game. (This was
 
Most often from game developers you can hear a very simple phrase: it's surprising that games generally come out. Games are complicated, untamed monsters, connected by something like digital insulating tape. It's not surprising that they fall apart.
 
 
Aliens: Colonial Marines was problematic for many reasons, but quickly became a common laughingstock when such viral
appeared. clips
, in which xenomorphes meaningless wander through the levels. This month the developer of mods
found
, that the reason for the stupid behavior of AI "strangers" was one error in the code of the game. (This ...
+ 0 -

Why Skylake processors sometimes work 2 times slower than

I was informed that on some new computers some regression tests became slower. It's common, it happens. Incorrect configuration is somewhere in Windows or not the most optimal values ​​in the BIOS. But this time we could not find the "adjusted" setting. Since the change is significant: 9 to 19 seconds (blue on the graph is old iron, and orange is new), then we had to dig deeper.
 
 
Why Skylake processors sometimes work 2 times slower than  
Intel's leadership , which explicitly mentions the Skylake microarchitecture and the pause ...
+ 0 -

Write code that is easy to delete and debug

Write code that is easy to delete and debug  
 
Simple code for debugging is code that does not fool you. It is more difficult to debug code with hidden behavior, with poor error handling, with uncertainties, insufficiently or excessively structured, or in the process of changing. In fairly large projects, you eventually encounter a code that you can not understand.
 
 
If the project is relatively old, then you can find code that you forgot about, and if it were not for the commits, you would have sworn that you did not write these lines. As the project grows, it becomes more difficult to remember what the different pieces of code are doing. And ...
+ 0 -

STM32 + NetBeans =?

STM32 + NetBeans =?

 
As you know, compatibility with GNU tools and GDB support make almost any popular development environment suitable for debugging a wide range of embedded platforms, mostly free of charge and legally. In theory.
 
 
What happens in practice when trying to make friends STM32 and NetBeans, and is it possible in principle to get a workable system with support for the newest stones - under the cut.
 
 
Spoiler [/b]
Yes. But no.
setup guide. . The main difference was only in the OS (Linux against Win7 x64 for me)...
+ 0 -