2-Alkyl-indazole compound and its pharmaceutically acceptable salts of acid addition, method and intermediates for preparing them, a pharmaceutical composition containing them and use of the latter. The 2-alkyl-indazole compound has the following general formula (I) in which R1, R2, R3, R4, R6, R7, X, Y, W, n, p, and m have the meanings stated in the description.