Quantcast
Viewing all articles
Browse latest Browse all 11

Dica: Como habilitar o debug no Dev-C++

Se você está trabalhando com C, uma opção simples e fácil de usar é o Dev-C++.

http://www.bloodshed.net/devcpp.html

Entretanto, tive problemas para fazer o debug funcionar. Pois clicar no botão de bug não funcionava, aparecia a mensagem:

Your project does not have debugging information, do you want to enable debugging and rebuild your project?

Não importa quantas vezes clicar no sim, o debug não vai funcionar, para isso é necessário habilitar as seguintes opções.

Image may be NSFW.
Clik here to view.
Screenshot_03_11_14_02_31

 

Image may be NSFW.
Clik here to view.
Screenshot_03_11_14_02_31

 

 

A opção -g adiciona as informações de debug, então basta compilar o aplicativo e utilizar a função debug normalmente.


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 11