Monitoring lysosomal dynamics in real-time, especially in vivo, poses significant challenges due to the complex and dynamic nature of cellular environments. It is extremely important to construct fluorescent probes with high stability for imaging lysosomes to minimize interference from other cellular components, in order to ensure prolonged imaging. A fluorescent probe (PDB) has been proposed for targeting lysosomes, which was less affected to changes in the cellular microenvironment (such as pH, viscosity and polarity). PDB can be easily prepared by 4'-piperazinoacetophenone and 2-(4-diethylamino)-2-hydroxybenzoyl) benzoicacid, containing a piperazine group for labeling and imaging lysosomes and the high pKa value (∼9.35) allowed PDB to efficiently track lysosomes. The emission wavelength of PDB in aqueous solution was 634 nm (λex = 572 nm, Фf = 0.11). The dynamic process of lysosome induced by starvation and rapamycin was successfully explored by fluorescence imaging. Compared with the commercially available Lyso-Tracker green, the high photostability fluorescent probe can ensure 3D high-fidelity tracking and resist photobleaching. Therefore, PDB, unaffected by the cell microenvironment, successfully achieved long-term tracking of lysosomal movement, even enabling imaging in tumor-bearing mice over 11 days. The strong fluorescence signal, high stability, and long-term tracking capability indicate that PDB has tremendous potential in monitoring biological processes.