Zdeňkovo poznámky

Co zjistím a opakovaně vyheldávám, tak sem zapíšu

Uživatelské nástroje

Nástroje pro tento web


programovani:dev-cpp

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revizePředchozí verze
Následující verze
Předchozí verze
programovani:dev-cpp [2019/01/08 05:34] – [Debug] Zdeněk Havlíkprogramovani:dev-cpp [2019/01/10 06:19] (aktuální) – [Programování v Dev-C++] Zdeněk Havlík
Řádek 1: Řádek 1:
 ====== Programování v Dev-C++ ====== ====== Programování v Dev-C++ ======
  
-  Používám verzi Dev-C++ 4.9.9.2 s knihovnou lmysql lcurses+<WRAP center round info 90%> 
 +Windows 7 - Dev-C++ 4.9.9.2\\ 
 +Windows 10 - xwDev-C++ (momentálně nejde), při kompilaci vyskauje chyba ''-1073741819''\\ 
 +  - nastavení kompatibility na Win7 zatím pomohlo 
 +Knihovny - lmysql, -lcurses 
 +</WRAP> 
  
 ===== Debug ===== ===== Debug =====
  
   * First, make sure you are using a project.   * First, make sure you are using a project.
-  * Go to ***Project Options - Compiler - Linker*** and set ***Generate debugging information*** to "**yes**"+  * Go to ''Project Options - Compiler - Linker'' and set ''Generate debugging information'' to "**yes**"
   * Make sure you are not using any optimization options   * Make sure you are not using any optimization options
-  * check the Parameters tab +  * check the Parameters tab, make sure you don't have any optimization options (like -O2 or -O3, but -O0 is ok because it means no optimization) or strip option (-s). 
-  * +  * Do a full rebuild ''(Ctrl-F11)'' 
 +  * Set breakpoint(s) where you want the debugger to stop. To set a breakpoint on a line, just click on the gutter (the gray band on the left), or press ''Ctrl-F5''
 +  * You are ready to launch the debugger, by pressing F8 or clicking the debug button. 
 +  * you can step through the code, entering function calls, by pressing ''Shift-F7'' or the "step into" button, or stepping over the function calls, by pressing ''F7'' or the "next step" button. 
 +  * You can press ''Ctrl-F7'' or the "continue" button to continue execution till the next breakpoint. 
 + 
 + 
 +==== Information ==== 
 +  * At any time, you can add or remove breakpoints. 
 +  * When the program stopped at a breakpoint and you are stepping through the code, you can display the values of various variables in your program by putting your mouse over them, or you can display variables and expressions by pressing ''F4'' or the "add watch" button and typing the expression. 
 +  * For more information refer to the help included with //Dev-C++//
 + 
  
  
  
 Zdroj: http://eilat.sci.brooklyn.cuny.edu/cis1_5/HowToDebug.htm Zdroj: http://eilat.sci.brooklyn.cuny.edu/cis1_5/HowToDebug.htm
programovani/dev-cpp.1546925697.txt.gz · Poslední úprava: 2019/01/08 05:34 autor: Zdeněk Havlík

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki