This really depends on the particular tax treaty. Do you have to file taxes? Most likely yes. Do you have to deduct taxes? This depends: Some tax treaties specify that you only have to pay the "difference" in taxes, i.e., by deducting the taxes that you paid to the other country. Some other tax treaties specify that only one country is allowed to tax a particular type of income.
In my particular case (foreign citizen, resident alien) this means that I currently pay 100% of my taxes in the United States (where I also reside). In case I would move back to my home country the tax treaty wouldn't allow the United States to tax the income I make in my home country.