How to code an Environment?
Can we program a software or web app for testing our codes then showing the bugs so, that we can fix it quickly?
Yes...infact, there are IDEs out there that do Live-Bug Testing as your coding. Some of them cost $ though. You can look at JETBRAIN products as example.
Try installing IntelliJ for Java and Visual Studio Code for web development on your computer. I could explain perks of many different IDEs, but it would be too much for beginner, so just take these two and worry later when you know what you want in IDE. I personally use NetBeans for Java, but IntelliJ is pretty good, but VSC is amazing for html/css/js.