A compound of the general formula for use for diagnosing, preventing, and/or treating tuberculosis: or a salt thereof, wherein the moiety: represents single bond or double bond; and wherein R 1 is hydrogen, amino which may have one or two of the same or different C 1-6 alkyl or C 1-6 alkyl; R 2 is halogen, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkyl, C 1-6 alkoxy or hydroxy; m is an integer of 0 to 3; provided that when m is 2 or 3, R 2 may be different from each other; X 1 is -CH 2 -, -O-, -N(R 5)-, -S-, -SO- or -SO 2 -; R 5 is hydrogen, C 1-6 alkyl or C 1-7 alkanoyl; G 1 is C 1-6 alkylene; R 3 is hydrogen, carboxy, halogen, C 1-6 alkyl, which may have one or more hydroxy, cyano, amino which may have one or two substituents independently selected from: (a) C 1-6 alkyl and (b) -C(=O)-R 6 or -O-R 7; R 6 is C 1-6 alkoxy or C 1-6 alkyl, wherein the C 1-6 alkyl may have amino which may have one or two of the same or different C 1-6 alkyl; R 5 is hydrogen, amino, C 1-7 alkanoyl or C 1-6 alkyl; R 4 is amino which may have one or two of the same or different C 1-6 alkyl, halogen, cyano, C 1-6 alkyl, oxo, -O-R 8 or -O-C(=O)-R 9; R 8 is hydrogen, C 1-6 alkyl, -PH(=O)OH or benzyl which may have one or more of the same or different C 1-6 alkoxy; R 9 is C 1-6 alkyl, -G 2 -COOH, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkoxy or pyrazinyl; G 2 is C 1-6 alkylene; n is an integer of 0 to 8; provided that when n is 2 or more, each of R 4, R 8, R 9, and G 2 may be different from each other and may be substituted on the same carbon atom; X 2 isN orCH; provided that when X 2 is CH, H of the group may be replaced with R 4 which is defined as above, wherein multiple R 4 s in formula may be the same or different from each other; and Ring A is aryl which may have one or more substituents, or heterocyclyl which may have one or more substituents. wherein R 1 is hydrogen, amino which may have one or two of the same or different C 1-6 alkyl or C 1-6 alkyl; hydrogen, amino which may have one or two of the same or different C 1-6 alkyl or C 1-6 alkyl; R 2 is halogen, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkyl, C 1-6 alkoxy or hydroxy; halogen, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkyl, C 1-6 alkoxy or hydroxy; m is an integer of 0 to 3; provided that when m is 2 or 3, R 2 may be different from each other; X 1 is -CH 2 -, -O-, -N(R 5)-, -S-, -SO- or -SO 2 -; R 5 is hydrogen, C 1-6 alkyl or C 1-7 alkanoyl; hydrogen, C 1-6 alkyl or C 1-7 alkanoyl; G 1 is C 1-6 alkylene; R 3 is hydrogen, carboxy, halogen, C 1-6 alkyl, which may have one or more hydroxy, cyano, amino which may have one or two substituents independently selected from: (a) C 1-6 alkyl and (b) -C(=O)-R 6 or -O-R 7; hydrogen, carboxy, halogen, C 1-6 alkyl, which may have one or more hydroxy, cyano, amino which may have one or two substituents independently selected from: (a) C 1-6 alkyl and (b) -C(=O)-R 6 or (a) C 1-6 alkyl and (b) -C(=O)-R 6 or -O-R 7; R 6 is C 1-6 alkoxy or C 1-6 alkyl, wherein the C 1-6 alkyl may have amino which may have one or two of the same or different C 1-6 alkyl; C 1-6 alkoxy or C 1-6 alkyl, wherein the C 1-6 alkyl may have amino which may have one or two of the same or different C 1-6 alkyl; R 5 is hydrogen, amino, C 1-7 alkanoyl or C 1-6 alkyl; hydrogen, amino, C 1-7 alkanoyl or C 1-6 alkyl; R 4 is amino which may have one or two of the same or different C 1-6 alkyl, halogen, cyano, C 1-6 alkyl, oxo, -O-R 8 or -O-C(=O)-R 9; amino which may have one or two of the same or different C 1-6 alkyl, halogen, cyano, C 1-6 alkyl, oxo, -O-R 8 or -O-C(=O)-R 9; R 8 is hydrogen, C 1-6 alkyl, -PH(=O)OH or benzyl which may have one or more of the same or different C 1-6 alkoxy; hydrogen, C 1-6 alkyl, -PH(=O)OH or benzyl which may have one or more of the same or different C 1-6 alkoxy; R 9 is C 1-6 alkyl, -G 2 -COOH, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkoxy or pyrazinyl; C 1-6 alkyl, -G 2 -COOH, amino which may have one or two of the same or different C 1-6 alkyl, C 1-6 alkoxy or pyrazinyl; G 2 is C 1-6 alkylene; n is an integer of 0 to 8; provided that when n is 2 or more, each of R 4, R 8, R 9, and G 2 may be different from each other and may be substituted on the same carbon atom; X 2 isN orCH; provided that when X 2 is CH, H of the group may be replaced with R 4 which is defined as above, wherein multiple R 4 s in formula may be the same or different from each other; and Ring A is aryl which may have one or more substituents, or heterocyclyl which may have one or more substituents. aryl which may have one or more substituents, or heterocyclyl which may have one or more substituents.