Go to app\Config\Filters.php and make sure this line is uncommented:
'after' => [
'toolbar', // comment this out to disable the debug toolbar
You can also check in .htaccess (in the public folder) for CI_ENVIRONMENT... some of these similar settings override others, so having it set in one place doesn't always mean you get what you're expecting.